mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-09 12:35:18 +02:00
Docker build. Catch client routes on server. Initial config utility
This commit is contained in:
parent
d2e6ebae4f
commit
1636b705de
10 changed files with 125 additions and 13 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM node:14-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json .
|
||||
|
||||
RUN npm install --only=production
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN mkdir -p ./public ./data
|
||||
RUN mv ./client/build/* ./public
|
||||
RUN rm -rf ./client
|
||||
|
||||
EXPOSE 5005
|
||||
|
||||
CMD ["node", "server.js"]
|
Loading…
Add table
Add a link
Reference in a new issue