1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-24 05:39:35 +02:00
flame/Dockerfile.multiarch

30 lines
422 B
Text
Raw Normal View History

2021-11-08 15:42:32 +01:00
FROM node:14 as builder
WORKDIR /app
COPY package*.json ./
2021-11-08 15:42:32 +01:00
RUN npm install --production
2021-11-08 15:42:32 +01:00
COPY . .
2021-06-24 12:53:45 +02:00
RUN mkdir -p ./public ./data \
&& cd ./client \
&& npm install --production \
&& npm run build \
&& cd .. \
&& mv ./client/build/* ./public \
2021-11-08 15:42:32 +01:00
&& rm -rf ./client
2021-11-01 15:13:06 +01:00
FROM node:14-alpine
COPY --from=builder /app /app
WORKDIR /app
EXPOSE 5005
ENV NODE_ENV=production
2021-11-01 19:08:30 +03:00
CMD ["node", "server.js"]