This commit is contained in:
Tomáš Dvořák committed 2025-10-03 16:26:44 +02:00
1 parent 0fc92f8464
commit cdb8bcd3e9
5928 files changed
+1054476 -72

No files matched your search

+6 -3
View File
@@ -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"]