mirror of
https://github.com/lovasoa/whitebophir
synced 2024-11-10 14:34:20 +00:00
16 lines
338 B
Docker
16 lines
338 B
Docker
FROM node:10-alpine
|
|
|
|
WORKDIR /opt/app
|
|
COPY . /opt/app
|
|
|
|
ENV PORT=80
|
|
EXPOSE 80
|
|
|
|
VOLUME /opt/app/server-data
|
|
|
|
RUN touch /usr/bin/start.sh # this is the script which will run on start
|
|
|
|
RUN echo 'npm install --production' >> /usr/bin/start.sh
|
|
RUN echo 'node /opt/app/server/server.js' >> /usr/bin/start.sh
|
|
|
|
CMD ["/bin/sh","/usr/bin/start.sh"]
|