littlelink-server/Dockerfile

19 lines
405 B
Docker
Raw Normal View History

2021-08-10 04:58:26 +02:00
FROM node:14.17.4-alpine
RUN apk --no-cache add \
gettext \
bash
ENV NODE_ENV=production
WORKDIR /usr/src/app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile --check-files --production=true
COPY www ./www
COPY template ./template
COPY env.js ./
2021-08-10 04:58:26 +02:00
COPY app.js ./
COPY ./entrypoint.sh /
RUN chmod +x /entrypoint.sh
EXPOSE 3000
ENTRYPOINT ["/entrypoint.sh"]
CMD [ "node", "app.js" ]