All checks were successful
Creates a docker image for production / Build the docker image (push) Successful in 27s
⬆️ (Dockerfile): Update Dockerfile to use uppercase 'AS' for better readability and consistency
16 lines
265 B
Docker
16 lines
265 B
Docker
FROM node:12 AS build-stage
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json /app/
|
|
|
|
RUN npm install
|
|
|
|
COPY ./ /app/
|
|
|
|
RUN npm run build
|
|
|
|
FROM nginx:1.15
|
|
COPY --from=build-stage /app/build/ /usr/share/nginx/html
|
|
COPY --from=build-stage /app/nginx.conf /etc/nginx/conf.d/default.conf
|