Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Atif Ather <[email protected]>
  • Loading branch information
atifather authored Dec 14, 2023
1 parent 5b0ce09 commit daf3cbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
FROM node:18 AS frontend

# Set the working directory for the frontend
WORKDIR /app
WORKDIR /web

# Copy only the necessary files for the frontend build
COPY ./web /app
COPY ./web /web

# Install make, required for the build process
RUN apt-get update && apt-get install -y make

# Change to the ./web directory and build the frontend
WORKDIR /app/web
WORKDIR /web
RUN make build-web

# Stage 2: Build the Go application
Expand All @@ -30,7 +30,7 @@ RUN go mod download
COPY . .

# Copy the built frontend assets from the frontend stage
COPY --from=frontend /app/web/build /app/web/build
COPY --from=frontend /web/build /web/build

# Build the Go application
RUN CGO_ENABLED=0 go build -o /bin/app .
Expand Down

0 comments on commit daf3cbe

Please sign in to comment.