Use apache for static serving
This commit is contained in:
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.DS_Store
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
12
.drone.yml
12
.drone.yml
@@ -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
|
|
||||||
12
Dockerfile
12
Dockerfile
@@ -15,12 +15,8 @@ FROM build-deps AS build
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM base AS runtime
|
FROM httpd:latest AS runtime
|
||||||
COPY --from=prod-deps /app/node_modules ./node_modules
|
COPY --from=prod-deps /app/node_modules /usr/local/apache2/htdocs/node_modules
|
||||||
COPY --from=build /app/dist ./dist
|
COPY --from=build /app/dist /usr/local/apache2/htdocs/dist
|
||||||
|
|
||||||
ENV HOST=0.0.0.0
|
EXPOSE 80
|
||||||
ENV PORT=4321
|
|
||||||
EXPOSE 4321
|
|
||||||
|
|
||||||
CMD node ./dist/server/entry.mjs
|
|
||||||
Reference in New Issue
Block a user