chore: track deployment and expose frontend on LAN interfaces
This commit is contained in:
commit
db0f995997
7 files changed
+148
No files matched your search
@@ -0,0 +1,13 @@
|
||||
FROM node:18-bookworm-slim AS build
|
||||
WORKDIR /app
|
||||
COPY hackathon-grading-system-front/package*.json ./
|
||||
RUN npm ci
|
||||
COPY hackathon-grading-system-front/ ./
|
||||
ENV API_BASE_URL=/api
|
||||
ENV NODE_OPTIONS=--openssl-legacy-provider
|
||||
RUN npm run generate
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY deployment/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
Reference in new issue
Block a user