Skip to content

Commit 0ff73fb

Browse files
authored
fix: Docker build and nginx configuration (#92)
1 parent db7dd12 commit 0ff73fb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
!frontend/package-lock.json
66
!frontend/tsconfig.app.json
77
!frontend/tsconfig.json
8-
!frontend/src/**
8+
!frontend/projects/**
99

1010
!static/**
1111
!nginx.conf

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22.11 as build
1+
FROM node:22.11 AS build
22

33
COPY frontend/package.json frontend/package-lock.json /app/frontend/
44

@@ -10,7 +10,7 @@ RUN npm run build-prod
1010
RUN npm run build:wc
1111

1212
FROM nginx:alpine
13-
COPY --from=build /app/frontend/dist/ /usr/share/nginx/html/ui/example-content
14-
COPY --from=build /app/frontend/dist-wc/ /usr/share/nginx/html/ui/wc
13+
COPY --from=build /app/frontend/dist/ /usr/share/nginx/html/ui/
14+
COPY --from=build /app/frontend/dist-wc/ /usr/share/nginx/html/wc/
1515
COPY nginx.conf /etc/nginx/nginx.conf
1616
EXPOSE 8080

nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ http {
1212

1313
root /usr/share/nginx/html;
1414

15-
location /ui/account-ui/ {
16-
try_files $uri $uri/ /ui/account-ui/index.html;
15+
location /ui/example-content/ui/ {
16+
try_files $uri $uri/ /ui/example-content/ui/index.html;
1717
}
1818
}
1919
}

0 commit comments

Comments
 (0)