From 8d653ddf6c57a950cd751106ef254ce55e18f655 Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Sat, 30 Mar 2024 21:41:49 +0000 Subject: [PATCH] Update Dockerfile to expose port 3000 --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f600c96..ca45aef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,3 @@ -#Dockerfile - # Use this image as the platform to build the app FROM node:18-alpine AS external-website @@ -18,8 +16,11 @@ RUN npm ci # Build SvelteKit app RUN npm run build +# Expose the port that the app is listening on +EXPOSE 3000 + # 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"] \ No newline at end of file +CMD ["node", "build/index.js"]