mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-11 08:17:29 -05:00
22 lines
413 B
Docker
22 lines
413 B
Docker
# docker build -t trunk-server-frontend .
|
|
# do a `git pull` in trunk-server-frontend to update
|
|
|
|
FROM node:8.11
|
|
|
|
|
|
ENV HOME=/home/app
|
|
|
|
RUN mkdir -p /home/app
|
|
COPY ./package.json /tmp
|
|
RUN cd /tmp && npm install
|
|
RUN cp -a /tmp/node_modules /home/app
|
|
|
|
# add `/usr/src/app/node_modules/.bin` to $PATH
|
|
ENV PATH /usr/app/node_modules/.bin:$PATH
|
|
|
|
WORKDIR $HOME
|
|
COPY . $HOME/
|
|
RUN npm run build
|
|
|
|
CMD ["npm", "run", "start"]
|