whitebophir/Dockerfile
Cyrille Pontvieux e090e857dd
Do not install on run (#30)
* Do not install on run

The docker image should contains already resolved dependencies.

No need for a start.sh, you could just run node directly.

* Simplify Dockerfile
2020-04-12 09:15:56 +02:00

12 lines
157 B
Docker

FROM node:10-alpine
COPY . /opt/app
WORKDIR /opt/app
RUN npm install --production
ENV PORT=80
EXPOSE 80
VOLUME /opt/app/server-data
CMD ["npm", "start"]