generated from bisco/codex-bootstrap
feat: add Angular frontend skeleton
This commit is contained in:
@@ -28,7 +28,8 @@ services:
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
context: ../..
|
||||
dockerfile: infra/docker/frontend/Dockerfile
|
||||
image: azionelab-frontend:local
|
||||
expose:
|
||||
- "${FRONTEND_PORT:-8080}"
|
||||
|
||||
@@ -1,6 +1,18 @@
|
||||
FROM node:22.12.0-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY frontend/package.json /app/package.json
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY frontend/ /app/
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.27.0-alpine
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY html/ /usr/share/nginx/html/
|
||||
COPY infra/docker/frontend/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/dist/azionelab/browser/ /usr/share/nginx/html/
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
Reference in New Issue
Block a user