Skip to content

Commit

Permalink
fix: build app with makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
BiPhan4 committed Dec 11, 2024
1 parent 5dcb0d9 commit 12b078f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ RUN go mod download
# Copy the entire project
COPY . .

# Build the Mulberry server binary
RUN go build -o mulberry main.go
# Build the application using the Makefile
RUN make install

# Use a smaller image for the final runtime container
FROM debian:bullseye-slim
Expand All @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y \
WORKDIR /root/

# Copy the binary and configuration files from the builder
COPY --from=builder /app/mulberry /usr/local/bin/mulberry
COPY --from=builder /go/bin/mulberry /usr/local/bin/mulberry
COPY --from=builder /app/config /root/.mulberry

# Expose ports - not sure we need all of these
Expand Down

0 comments on commit 12b078f

Please sign in to comment.