We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6790a09 + 712c879 commit 5581ad2Copy full SHA for 5581ad2
app/Dockerfile
@@ -1,5 +1,5 @@
1
-# Use the official Node.js image as a base image
2
-FROM node:18-alpine
+# Use the slim version of Node.js v20 on Debian Bookworm as the base image
+FROM node:20-bookworm-slim
3
4
# Set the working directory
5
WORKDIR /app
@@ -13,9 +13,11 @@ RUN npm install
13
# Copy the rest of the application code
14
COPY . .
15
16
-# Build the SvelteKit application
+# Set environment variable for MongoDB URI
17
ARG MONGODB_URI
18
ENV MONGODB_URI=$MONGODB_URI
19
+
20
+# Build the SvelteKit application
21
RUN npm run build
22
23
# Expose the port the app runs on
0 commit comments