Skip to content

Commit 5581ad2

Browse files
authored
Merge pull request #169 from DefangLabs/unify-dockerfile
unified dockerfiles
2 parents 6790a09 + 712c879 commit 5581ad2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Use the official Node.js image as a base image
2-
FROM node:18-alpine
1+
# Use the slim version of Node.js v20 on Debian Bookworm as the base image
2+
FROM node:20-bookworm-slim
33

44
# Set the working directory
55
WORKDIR /app
@@ -13,9 +13,11 @@ RUN npm install
1313
# Copy the rest of the application code
1414
COPY . .
1515

16-
# Build the SvelteKit application
16+
# Set environment variable for MongoDB URI
1717
ARG MONGODB_URI
1818
ENV MONGODB_URI=$MONGODB_URI
19+
20+
# Build the SvelteKit application
1921
RUN npm run build
2022

2123
# Expose the port the app runs on

0 commit comments

Comments
 (0)