mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-15 01:49:10 +00:00
make deployable
This commit is contained in:
parent
eaa1167f16
commit
309aee427e
15 changed files with 317 additions and 886 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM node:9.3 AS builder
|
||||
ENV NODE_ENV production
|
||||
RUN npm i -g yarn
|
||||
COPY . /src
|
||||
RUN cd /src/UI && yarn && yarn build && cd /src/Server && yarn && mkdir public && mv /src/UI/build/* public
|
||||
|
||||
FROM mhart/alpine-node:9.3
|
||||
ENV NODE_ENV production
|
||||
WORKDIR /dist
|
||||
EXPOSE 6769
|
||||
RUN npm i -g pm2
|
||||
COPY --from=builder /src/Server /dist
|
||||
CMD pm2-docker index.js
|
Loading…
Add table
Add a link
Reference in a new issue