fe-drone-ci/Node.Dockerfile

15 lines
193 B
Docker
Raw Permalink Normal View History

2021-06-06 02:37:12 +00:00
FROM node:lts
WORKDIR /src
COPY . .
RUN yarn && \
yarn build:prod && \
yarn global add pm2 http-server
EXPOSE 80
# CMD ["http-server","/src/dist","-p","80"]
CMD ["bash","http.sh"]