skirda-backend/.docker/node.dockerfile

18 lines
278 B
Plaintext
Raw Normal View History

2022-08-24 12:08:22 +00:00
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"]