23 lines
423 B
Docker
23 lines
423 B
Docker
# Nexus - Frontend (React) Dockerfile
|
|
|
|
FROM node:22.12.0-alpine as builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY frontend/ ./frontend/
|
|
COPY package.json .
|
|
COPY webpack.config.js .
|
|
|
|
RUN npm install
|
|
RUN npm run build
|
|
|
|
FROM nginx:1.27.3-alpine as server
|
|
|
|
COPY --from=builder /app/static/build /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# Create directory for SSL certificates
|
|
RUN mkdir -p /etc/nginx/ssl/
|
|
|
|
EXPOSE 443
|