1
0
Fork 0
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:
unknown 2021-06-14 12:13:38 +02:00
parent ff1d11f512
commit ad5e7646c1
4 changed files with 37 additions and 2 deletions

24
Dockerfile.multiarch Normal file
View 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"]