changes for prod container

This commit is contained in:
Nathan Rashleigh committed 2024-06-30 17:57:54 +10:00
1 parent 4097b05cf9
commit 2cbfb03eb6
14 files changed
+128 -53

No files matched your search

+8 -2
View File
@@ -1,6 +1,12 @@
# build step
FROM node:20 AS build-env
WORKDIR /app
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
@@ -9,5 +15,5 @@ RUN npm run build
# static server
FROM nginx
WORKDIR /srv/app
COPY --from=build-env /app/build /srv/app
COPY --from=build-env /usr/src/memestream-client/build /srv/app
COPY ./nginx.conf /etc/nginx/nginx.conf