Workflow: Add formula11 docker workflow
All checks were successful
Build Formula11 Docker Image / pocketbase-docker (push) Successful in 9s
All checks were successful
Build Formula11 Docker Image / pocketbase-docker (push) Successful in 9s
This commit is contained in:
27
formula11.dockerfile
Normal file
27
formula11.dockerfile
Normal file
@ -0,0 +1,27 @@
|
||||
# Build the node application
|
||||
FROM node:23-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
RUN npm prune --production
|
||||
|
||||
# Copy the built application to a minimal image
|
||||
FROM node:23-alpine
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/build build/
|
||||
# If all deps are devDependencies, this should theoretically not be required
|
||||
# COPY --from=builder /app/node_modules node_modules/
|
||||
COPY package.json .
|
||||
|
||||
EXPOSE 5173
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
CMD [ "node", "build" ]
|
Reference in New Issue
Block a user