stash
This commit is contained in:
parent
0f51f6e33f
commit
622e63ea8f
10 changed files with 879 additions and 55 deletions
18
deploy/prod/Dockerfile.frontend
Normal file
18
deploy/prod/Dockerfile.frontend
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Build-only image for the Vue frontend.
|
||||
# It is never run as a service: ansible builds this image once, runs it
|
||||
# with the host output directory bind-mounted at /output, the container
|
||||
# copies the compiled static build into it, and exits. Nginx on the host
|
||||
# then serves that directory directly.
|
||||
|
||||
FROM node:20-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
COPY extras/ ./extras/
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM alpine AS export
|
||||
COPY --from=build /app/dist /dist
|
||||
VOLUME /output
|
||||
CMD ["sh", "-c", "rm -rf /output/* && cp -a /dist/. /output/"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue