fix problem 404 on reload
This commit is contained in:
@@ -15,6 +15,7 @@ WORKDIR /usr/src/app
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
#COPY /nginx.conf ./nginx.conf
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
@@ -33,7 +34,7 @@ FROM nginx:alpine
|
||||
#COPY --from=build /usr/src/app/build /usr/share/nginx/html
|
||||
COPY --from=build /usr/src/app/dist /usr/share/nginx/html
|
||||
# Copy custom nginx configuration for SPA routing
|
||||
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /usr/src/app/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
# Expose HTTP port
|
||||
EXPOSE 80
|
||||
|
||||
|
||||
Reference in New Issue
Block a user