rxc-app/Dockerfile

17 lines
273 B
Docker

# build environment
FROM node:12 as builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . ./
RUN npm run build
# production environment
FROM node:12
COPY --from=builder /app/build ./build
RUN npm install
EXPOSE 80
CMD ["sh","-c","node serve -s build -p 80"]