18 lines
250 B
Docker
18 lines
250 B
Docker
|
FROM node:latest AS builder
|
||
|
|
||
|
ENV NODE_ENV production
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY package.json .
|
||
|
|
||
|
RUN npm install
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN npm run build
|
||
|
|
||
|
FROM httpd:latest as production
|
||
|
ENV NODE_ENV production
|
||
|
|
||
|
COPY --from=builder /app/build/ /usr/local/apache2/htdocs/
|