16 lines
567 B
Docker
16 lines
567 B
Docker
|
|
# SecureBit.chat is a static PWA (no backend). The committed build artifacts in
|
||
|
|
# dist/ are served as-is by nginx — matching the project's release workflow,
|
||
|
|
# where dist/ is rebuilt and committed for every release.
|
||
|
|
FROM nginx:1.27-alpine
|
||
|
|
|
||
|
|
# Replace the default nginx config with our static-serving config.
|
||
|
|
COPY deploy/nginx.conf /etc/nginx/nginx.conf
|
||
|
|
|
||
|
|
# Serve the repository (src/, assets/, libs/, dist/, config/, logo/, sw.js, ...).
|
||
|
|
COPY . /usr/share/nginx/html
|
||
|
|
|
||
|
|
# Fly.io health checks and routing target this port.
|
||
|
|
EXPOSE 8080
|
||
|
|
|
||
|
|
CMD ["nginx", "-g", "daemon off;"]
|