FROM node:18.20.2-bullseye

WORKDIR /app


COPY . .

RUN apt-get update && apt-get -y --no-install-recommends install git wget zlib1g unzip vim tini \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

RUN npm install --force

EXPOSE 80 443

ENTRYPOINT ["/usr/bin/tini", "--"]

RUN chmod -R 755 public/achfiles

CMD ["node","server.js"]