15 lines
193 B
Docker
15 lines
193 B
Docker
|
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"]
|