mirror of
https://github.com/lovasoa/whitebophir
synced 2024-11-10 06:24:17 +00:00
e090e857dd
* 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
12 lines
157 B
Docker
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"]
|