Update Dockerfile

This commit is contained in:
dionysus 2024-07-23 16:54:15 +00:00
parent 7bde1ca684
commit 4b06313caa

View file

@ -11,15 +11,17 @@ RUN npm install
# Copy the rest of your application files. # Copy the rest of your application files.
COPY . . COPY . .
# Build your application.
RUN npm run build
ARG POCKETBASE_URL ARG POCKETBASE_URL
ARG PORT=4321 ARG PORT=4321
# Set environment variables and expose the appropriate port. # Set environment variables and expose the appropriate port.
ENV HOST=0.0.0.0 ENV HOST=0.0.0.0
ENV PORT=${PORT} ENV PORT=${PORT}
ENV POCKETBASE_URL=${POCKETBASE_URL} ENV POCKETBASE_URL=${POCKETBASE_URL}
# Build your application.
RUN npm run build
EXPOSE ${PORT} EXPOSE ${PORT}
# Define the command to run your application. # Define the command to run your application.