flame/.docker/Dockerfile.multiarch

31 lines
537 B
Docker
Raw Normal View History

2021-11-13 14:03:35 +03:00
FROM node:14-alpine3.11 as builder
WORKDIR /app
COPY package*.json ./
2021-11-13 14:03:35 +03:00
RUN apk --no-cache --virtual build-dependencies add python make g++ \
&& npm install --production
2021-11-08 17:42:32 +03:00
COPY . .
2021-06-24 13:53:45 +03:00
RUN mkdir -p ./public ./data \
&& cd ./client \
&& npm install --production \
&& npm run build \
&& cd .. \
&& mv ./client/build/* ./public \
2021-11-08 17:42:32 +03:00
&& rm -rf ./client
2021-11-13 14:03:35 +03:00
FROM node:14-alpine3.11
2021-11-01 17:13:06 +03:00
COPY --from=builder /app /app
WORKDIR /app
EXPOSE 5005
ENV NODE_ENV=production
ENV PASSWORD=flame_password
2021-11-13 14:03:35 +03:00
CMD ["node", "server.js"]