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>
13 lines
266 B
Docker
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
|