mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-08 20:25:16 +02:00
Fixed infinite data fetching bug on homescreen. Docker files
This commit is contained in:
parent
ff1d11f512
commit
ad5e7646c1
4 changed files with 37 additions and 2 deletions
24
Dockerfile.multiarch
Normal file
24
Dockerfile.multiarch
Normal file
|
@ -0,0 +1,24 @@
|
|||
FROM node:14-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN apk --no-cache --virtual build-dependencies add python make g++ \
|
||||
&& npm install --production
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN mkdir -p ./public ./data \
|
||||
&& cd ./client \
|
||||
&& npm run build \
|
||||
&& cd .. \
|
||||
&& mv ./client/build/* ./public \
|
||||
&& rm -rf ./client \
|
||||
&& apk del build-dependencies
|
||||
|
||||
EXPOSE 5005
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
CMD ["node", "server.js"]
|
Loading…
Add table
Add a link
Reference in a new issue