mirror of
https://github.com/pawelmalak/flame.git
synced 2026-02-28 09:23:12 +08:00
Docker build. Catch client routes on server. Initial config utility
This commit is contained in:
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"]
|
||||
Reference in New Issue
Block a user