Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Atif Ather <40694397+atifather@users.noreply.github.com>
  • Loading branch information
atifather authored Dec 14, 2023
1 parent d1c2902 commit 977da98
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ FROM node:18 AS frontend
# RUN npm install -g serve

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

# Copy the entire project
COPY . /app
COPY . /src

# 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
WORKDIR /src
RUN make build-web

# Copy the frontend build from the frontend stage
Expand All @@ -50,10 +50,10 @@ RUN apt-get update && apt-get -y upgrade && apt-get install -y --no-install-reco
&& rm -rf /var/lib/apt/lists/*

# Copy the Go binary from the builder stage
COPY --from=builder /bin/app /checkpointz
COPY --from=builder /bin/app /checkpointz/checkpointz

# Copy the frontend build from the frontend stage
COPY --from=frontend /app/web /web
COPY --from=frontend /src/web/build /checkpointz/build

# Expose port 5555
EXPOSE 5555
Expand Down

0 comments on commit 977da98

Please sign in to comment.