working filtering. All that needs updating is the CSS cascading in the build process!
This commit is contained in:
parent
f02372d382
commit
de841dfd78
7 changed files with 253 additions and 242 deletions
23
Dockerfile
23
Dockerfile
|
@ -1,5 +1,7 @@
|
|||
# ref: https://khromov.se/dockerizing-your-sveltekit-applications-a-practical-guide/
|
||||
#
|
||||
# Use this image as the platform to build the app
|
||||
FROM node:20.11-alpine AS external-website
|
||||
FROM node:22-alpine AS builder
|
||||
|
||||
# A small line inside the image to show who made it
|
||||
LABEL Developers="Dave Lane, dave@laneventures.nz"
|
||||
|
@ -8,19 +10,28 @@ LABEL Developers="Dave Lane, dave@laneventures.nz"
|
|||
WORKDIR /app
|
||||
|
||||
# Copy all local files into the image
|
||||
COPY . .
|
||||
COPY package*.json .
|
||||
|
||||
# Clean install all node modules
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
|
||||
# Build SvelteKit app
|
||||
RUN npm run build
|
||||
|
||||
# Delete source code files that were used to build the app that are no longer needed
|
||||
RUN rm -rf src/ static/ emailTemplates/ docker-compose.yml
|
||||
RUN npm prune --production
|
||||
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/build build/
|
||||
COPY --from=builder /app/node_modules node_modules/
|
||||
COPY package.json .
|
||||
EXPOSE 5050
|
||||
ENV NODE_ENV=production
|
||||
# The USER instruction sets the user name to use as the default user for the remainder of the current stage
|
||||
USER node:node
|
||||
|
||||
# This is the command that will be run inside the image when you tell Docker to start the container
|
||||
CMD ["node","build/index.js"]
|
||||
CMD [ "node", "build" ]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue