20 lines
441 B
Docker
20 lines
441 B
Docker
# build step
|
|
FROM node:20 AS build-env
|
|
WORKDIR /usr/src/memestream-client
|
|
|
|
# super annoying
|
|
# ARG REACT_APP_MEILI_ENDPOINT
|
|
# ARG REACT_APP_MEILI_KEY
|
|
# ENV REACT_APP_MEILI_ENDPOINT $REACT_APP_MEILI_ENDPOINT
|
|
# ENV REACT_APP_MEILI_KEY $REACT_APP_MEILI_KEY
|
|
|
|
COPY . ./
|
|
RUN npm i
|
|
RUN npm run build
|
|
|
|
# static server
|
|
FROM nginx
|
|
WORKDIR /srv/app
|
|
COPY --from=build-env /usr/src/memestream-client/build /srv/app
|
|
COPY ./nginx.conf /etc/nginx/nginx.conf
|