mirror of
https://github.com/Dvorinka/ClubLogos.git
synced 2026-06-03 19:42:58 +00:00
fff
This commit is contained in:
+6
-3
@@ -14,7 +14,7 @@ RUN go mod download
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o main .
|
||||
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o server .
|
||||
|
||||
# Runtime stage
|
||||
FROM alpine:latest
|
||||
@@ -24,7 +24,7 @@ RUN apk --no-cache add ca-certificates sqlite-libs
|
||||
WORKDIR /root/
|
||||
|
||||
# Copy the binary from builder
|
||||
COPY --from=builder /app/main .
|
||||
COPY --from=builder /app/server ./server
|
||||
|
||||
# Create directories
|
||||
RUN mkdir -p /root/logos
|
||||
@@ -33,4 +33,7 @@ RUN mkdir -p /root/logos
|
||||
EXPOSE 8080
|
||||
|
||||
# Run the application
|
||||
CMD ["./main"]
|
||||
CMD ["./server"]
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user