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
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:
10
Dockerfile
10
Dockerfile
@@ -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
|
||||
Reference in New Issue
Block a user