skirda-backend/.docker/node.dockerfile
2022-08-24 15:08:22 +03:00

18 lines
278 B
Docker

FROM node:16.17.0-alpine
LABEL author="Dan Wahlin"
ENV CONTAINER=true
WORKDIR /var/www/node-service
COPY package.json package-lock.json ./
RUN npm install --only=prod --no-optional
COPY ./server.js .
COPY ./api .
COPY ./data .
EXPOSE 8080
ENTRYPOINT ["node", "server.js"]