diff --git a/Dockerfile b/Dockerfile index 50b0714..bc85703 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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