connected-to-google

This commit is contained in:
mario
2025-04-07 15:46:07 +07:00
parent f340bc5916
commit 9b8e0260f3
15 changed files with 282 additions and 286 deletions

View File

@@ -1,5 +1,5 @@
# Build stage
FROM golang:1.18-alpine AS builder
FROM golang:1.22 AS builder
# Set working directory
WORKDIR /app
@@ -14,10 +14,10 @@ RUN go mod download
COPY . .
# Build the application
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o dicom-proxy cmd/server/main.go
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o ohif-proxy cmd/server/main.go
# Final stage
FROM alpine:3.15
FROM alpine:3.18
# Install CA certificates for HTTPS connections
RUN apk --no-cache add ca-certificates
@@ -26,19 +26,14 @@ RUN apk --no-cache add ca-certificates
WORKDIR /app
# Copy binary from build stage
COPY --from=builder /app/dicom-proxy .
COPY --from=builder /app/ohif-proxy .
# Copy configuration
# Copy configuration and create dirs
COPY config/config.yaml ./config/
# Create directory for credentials
RUN mkdir -p /app/credentials
# Expose port
EXPOSE 8080
# Set environment variable for config file location
ENV CONFIG_FILE=/app/config/config.yaml
EXPOSE 5555
# Run the application
ENTRYPOINT ["./dicom-proxy"]
CMD ["./ohif-proxy"]