Trying nginx instead
All checks were successful
Build and Test - Staging / test (pull_request) Successful in 1s
Build and Test - Staging / deploy_staging (pull_request) Successful in 3s
Build and Test - Staging / determine_version (pull_request) Successful in 27s
Build and Test - Staging / build_and_push (pull_request) Successful in 2m35s

This commit is contained in:
2025-11-07 22:26:38 -08:00
parent a807a39b09
commit 506987c164
2 changed files with 35 additions and 6 deletions

View File

@@ -19,13 +19,11 @@ RUN echo "PUBLIC_REPO_VERSION_HASH=\"${REPO_VERSION_HASH}\" \n\
PUBLIC_BUILD_ENVIRONMENT=\"${BUILD_ENVIRONMENT}\"" >> .env
RUN npm run build
FROM httpd:2.4 AS runtime
WORKDIR /usr/local/apache2/htdocs
FROM nginx:alpine AS runtime
RUN rm index.html
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/dist /usr/share/nginx/html
COPY --from=build /app/dist .
RUN chown -R www-data:www-data *
RUN chown -R nginx:nginx /usr/share/nginx/html
EXPOSE 80