Skip to content

Commit

Permalink
prod ev Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellaera committed Nov 6, 2024
1 parent d4bc289 commit be8e7f9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
FROM node:20.18.0-slim AS build
WORKDIR /app

# Accept build argument
ARG API_URL

# Set the API_URL environment variable for the build process
ENV API_URL=$API_URL

ARG NODE_ENV=production

COPY package*.json ./
RUN npm install
COPY . .
Expand Down

0 comments on commit be8e7f9

Please sign in to comment.