Use apache for static serving
All checks were successful
Build and Test / build_and_push (push) Successful in 1m3s
Build and Test / test (push) Successful in 1s

This commit is contained in:
2025-03-07 23:35:24 -08:00
parent 076c79cc7f
commit 88dcc6e290
3 changed files with 7 additions and 20 deletions

3
.dockerignore Normal file
View File

@@ -0,0 +1,3 @@
.DS_Store
node_modules
dist

View File

@@ -1,12 +0,0 @@
kind: pipeline
type: docker
name: default
steps:
- name: docker
image: plugins/docker
settings:
auto_tag: true
repo: gitea.perren.cloud/caperren/caperren-com
tags:
- latest

View File

@@ -15,12 +15,8 @@ FROM build-deps AS build
COPY . .
RUN npm run build
FROM base AS runtime
COPY --from=prod-deps /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist
FROM httpd:latest AS runtime
COPY --from=prod-deps /app/node_modules /usr/local/apache2/htdocs/node_modules
COPY --from=build /app/dist /usr/local/apache2/htdocs/dist
ENV HOST=0.0.0.0
ENV PORT=4321
EXPOSE 4321
CMD node ./dist/server/entry.mjs
EXPOSE 80