HuggingFace0920 commited on
Commit
50834d4
·
verified ·
1 Parent(s): c2dd996

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -2,7 +2,7 @@
2
  FROM golang:1.21-alpine AS builder
3
 
4
  # Install build dependencies
5
- RUN apk add --no-cache git make
6
 
7
  # Set the working directory
8
  WORKDIR /app
@@ -11,7 +11,7 @@ WORKDIR /app
11
  RUN git clone https://github.com/Finb/bark-server.git .
12
 
13
  # Build the application
14
- RUN make build
15
 
16
  # Create the final lightweight image
17
  FROM alpine:3.18
@@ -23,10 +23,7 @@ RUN apk add --no-cache ca-certificates tzdata
23
  WORKDIR /app
24
 
25
  # Copy the built binary from the builder stage
26
- COPY --from=builder /app/bin/bark-server .
27
-
28
- # Copy configuration files if needed
29
- # COPY --from=builder /app/config.example.yaml ./config.yaml
30
 
31
  # Expose the default port (8080 as per the repository)
32
  EXPOSE 8080
 
2
  FROM golang:1.21-alpine AS builder
3
 
4
  # Install build dependencies
5
+ RUN apk add --no-cache git
6
 
7
  # Set the working directory
8
  WORKDIR /app
 
11
  RUN git clone https://github.com/Finb/bark-server.git .
12
 
13
  # Build the application
14
+ RUN go build -o bark-server ./cmd/bark
15
 
16
  # Create the final lightweight image
17
  FROM alpine:3.18
 
23
  WORKDIR /app
24
 
25
  # Copy the built binary from the builder stage
26
+ COPY --from=builder /app/bark-server .
 
 
 
27
 
28
  # Expose the default port (8080 as per the repository)
29
  EXPOSE 8080