1
0
Fork 0

corrected build dir, no index

This commit is contained in:
Ava Gaiety W 2024-03-04 18:21:08 +00:00
parent 70a402e74f
commit f349a66709
2 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@ FROM node:16.17.0-bullseye-slim AS build
ENV NODE_ENV production
WORKDIR /app
COPY . /app
RUN mkdir -p dist node_modules
RUN mkdir -p _site node_modules
RUN chown -R node:node .
USER node
RUN NODE_ENV=development npm ci
@ -12,5 +12,5 @@ RUN npm run build
# serve compiled files with local nginx config
FROM nginx:alpine
WORKDIR /app
COPY --from=build /app/dist .
COPY --from=build /app/_site .
COPY ./nginx.conf /etc/nginx/nginx.conf

View file

@ -11,7 +11,7 @@ http {
listen [::]:8080;
resolver 127.0.0.11;
autoindex on;
autoindex off;
server_name _;
server_tokens off;