mirror of
https://github.com/Leahnaya/smash-or-pass.git
synced 2026-04-24 14:06:45 -05:00
14 lines
353 B
Docker
14 lines
353 B
Docker
FROM node:14.17.6 as react-app-build
|
|
WORKDIR /react-app-build
|
|
|
|
COPY package*.json ./
|
|
COPY tsconfig.json ./
|
|
COPY craco.config.js ./
|
|
RUN npm ci
|
|
COPY src ./src
|
|
COPY public ./public
|
|
RUN npm run build
|
|
|
|
FROM nginx:1.21.3-alpine
|
|
COPY --from=react-app-build /react-app-build/build/ /usr/share/nginx/html
|
|
COPY ./nginx/nginx.conf /etc/nginx/conf.d/default.conf |