aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--frontend/Dockerfile14
-rw-r--r--frontend/nginx.conf9
2 files changed, 12 insertions, 11 deletions
diff --git a/frontend/Dockerfile b/frontend/Dockerfile
index 69aa4dc..7e2e616 100644
--- a/frontend/Dockerfile
+++ b/frontend/Dockerfile
@@ -14,17 +14,9 @@ ENV ALBATROSS_BASE_PATH="$ALBATROSS_BASE_PATH"
RUN npm run build
################################################################################
-FROM node:22.14
+FROM nginx:1.27-alpine
-WORKDIR /app
-ENV NODE_ENV=production
-
-COPY package.json package-lock.json .
-RUN npm install --omit=dev
-
-COPY --from=builder /app/build ./build
+COPY --from=builder /app/dist /usr/share/nginx/html
+COPY nginx.conf /etc/nginx/conf.d/default.conf
-ENV HOST="$ALBATROSS_HOST"
-ENV PORT=80
EXPOSE 80
-CMD ["npm", "run", "start"]
diff --git a/frontend/nginx.conf b/frontend/nginx.conf
new file mode 100644
index 0000000..f749e02
--- /dev/null
+++ b/frontend/nginx.conf
@@ -0,0 +1,9 @@
+server {
+ listen 80;
+ root /usr/share/nginx/html;
+ index index.html;
+
+ location / {
+ try_files $uri $uri/ /index.html;
+ }
+}