fix: update nginx config path in frontend Dockerfile
corrected the path for copying nginx.conf in the frontend Dockerfile to point to the correct location relative to the build context Changes to be committed: modified: .gitea/workflows/masterbuild.yml modified: epistine-webserver/frontend/Dockerfile
This commit is contained in:
@@ -109,7 +109,7 @@ jobs:
|
||||
- name: Build & Push epistine-webserver-frontend
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: ./epistine-webserver/frontend
|
||||
context: ./epistine-webserver
|
||||
file: ./epistine-webserver/frontend/Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
FROM node:18-alpine as builder
|
||||
FROM node:18-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
COPY frontend/package*.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
COPY frontend/ ./
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY --from=builder /app/build /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user