aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/Dockerfile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-13 23:08:50 +0900
committernsfisis <nsfisis@gmail.com>2026-02-13 23:08:50 +0900
commit470b7235b80d082009ad350e2b33ef6637209e02 (patch)
tree60ffe938a4051255ea0d6b35001be50c28b76497 /frontend/Dockerfile
parent482c3a52a0fcc5870a7db4a190475caf61b211a3 (diff)
parent6c30f383a65cb000d66a85cadc96253ce7061942 (diff)
downloadphperkaigi-2026-albatross-470b7235b80d082009ad350e2b33ef6637209e02.tar.gz
phperkaigi-2026-albatross-470b7235b80d082009ad350e2b33ef6637209e02.tar.zst
phperkaigi-2026-albatross-470b7235b80d082009ad350e2b33ef6637209e02.zip
Merge branch 'feat/frontend-rearchitecture'
Diffstat (limited to 'frontend/Dockerfile')
-rw-r--r--frontend/Dockerfile14
1 files changed, 3 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"]