troylusty.com/Dockerfile
Troy 7d51cd186f
All checks were successful
Test / run-tests (pull_request) Successful in 3m25s
fix: correct dockerfile env syntax
2025-04-14 02:10:16 +01: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