troylusty.com/Dockerfile
Troy 3698e926ea
All checks were successful
Docker / run-tests (push) Successful in 2m38s
Docker / build-and-push-image (push) Successful in 2m54s
fix: remove trailing slash (#1)
Set `SERVER_REDIRECT_TRAILING_SLASH=false` within Dockerfile to disable SWS from adding a trailing slash.

Reviewed-on: #1
Co-authored-by: Troy <hello@troylusty.com>
Co-committed-by: Troy <hello@troylusty.com>
2025-04-14 01:16:25 +00:00

13 lines
266 B
Docker

FROM node:latest AS node
USER node
WORKDIR /usr/src/app
COPY . .
RUN ["npm", "ci"]
RUN ["npx", "astro", "build"]
FROM ghcr.io/static-web-server/static-web-server:latest
WORKDIR /
COPY --from=node /usr/src/app/dist /public
ENV SERVER_REDIRECT_TRAILING_SLASH=false