From 4b06313caa8b051b4f2f782ce82f74e959616c5b Mon Sep 17 00:00:00 2001 From: dionysus Date: Tue, 23 Jul 2024 16:54:15 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f5a2dc9..5d2fd6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,15 +11,17 @@ RUN npm install # Copy the rest of your application files. COPY . . -# Build your application. -RUN npm run build - ARG POCKETBASE_URL ARG PORT=4321 # Set environment variables and expose the appropriate port. ENV HOST=0.0.0.0 ENV PORT=${PORT} ENV POCKETBASE_URL=${POCKETBASE_URL} + +# Build your application. +RUN npm run build + + EXPOSE ${PORT} # Define the command to run your application.