mirror of
https://github.com/Grace-Solutions/Depl0y-Custom.git
synced 2026-07-26 11:28:19 +00:00
18 lines
453 B
Docker
18 lines
453 B
Docker
FROM nginx:alpine
|
|
|
|
ARG APP_VERSION=1.1.9
|
|
|
|
ENV APP_VERSION=${APP_VERSION}
|
|
|
|
# Copy built frontend assets into nginx web root
|
|
COPY src/frontend/dist /usr/share/nginx/html
|
|
|
|
# Custom nginx config for SPA routing (serve index.html for unknown routes)
|
|
# Use nginx's built-in template support to env-substitute BACKEND_BASEURL
|
|
COPY deployment/docker/frontend/nginx.conf /etc/nginx/templates/default.conf.template
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|
|
|