wip
This commit is contained in:
parent
ba1f43fd8e
commit
0f9fbc9375
15 changed files with 381 additions and 297 deletions
|
@ -38,22 +38,12 @@ FROM alpine:latest
|
|||
# Install runtime dependencies for SQLite
|
||||
RUN apk add --no-cache ca-certificates sqlite
|
||||
|
||||
# Create non-root user
|
||||
RUN addgroup -g 1001 -S gocheck && \
|
||||
adduser -S -D -H -h /app -s /sbin/nologin -G gocheck -g gocheck -u 1001 gocheck
|
||||
|
||||
# Copy the binary from builder stage
|
||||
COPY --from=builder /app/gocheck /app/gocheck
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Change ownership to non-root user
|
||||
RUN chown -R gocheck:gocheck /app
|
||||
|
||||
# Switch to non-root user
|
||||
USER gocheck
|
||||
|
||||
# Expose default port (can be overridden via PORT env var)
|
||||
EXPOSE 8080
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue