mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-28 01:09:37 +02:00
Update Dockerfile to expose port 3000
This commit is contained in:
parent
c2e658edc5
commit
8d653ddf6c
1 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,3 @@
|
||||||
#Dockerfile
|
|
||||||
|
|
||||||
# Use this image as the platform to build the app
|
# Use this image as the platform to build the app
|
||||||
FROM node:18-alpine AS external-website
|
FROM node:18-alpine AS external-website
|
||||||
|
|
||||||
|
@ -18,8 +16,11 @@ RUN npm ci
|
||||||
# Build SvelteKit app
|
# Build SvelteKit app
|
||||||
RUN npm run build
|
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
|
# The USER instruction sets the user name to use as the default user for the remainder of the current stage
|
||||||
USER node:node
|
USER node:node
|
||||||
|
|
||||||
# This is the command that will be run inside the image when you tell Docker to start the container
|
# 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/index.js"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue