Enable auto-docker build & publish
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM alpine:3.20
|
||||
WORKDIR /web-content
|
||||
|
||||
LABEL org.opencontainers.image.description="SvelteKit Static build - Designed to be an InitContainer to copy files from to the output web server container's filesystem"
|
||||
|
||||
COPY --from=builder /app/build ./
|
||||
CMD ["sh", "-c", "cp -R /web-content/* /target-dir/"]
|
||||
Reference in New Issue
Block a user