Skip to content

Commit

Permalink
chore: add back build/Dockerfile for release (#3220)
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
  • Loading branch information
markphelps authored Jun 26, 2024
1 parent b396b9a commit 557b871
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
version: 2

project_name: flipt

Expand Down
30 changes: 30 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# https://goreleaser.com/docker/

ARG BINARY=flipt

FROM alpine:3.20.0

LABEL maintainer="dev@flipt.io"
LABEL org.opencontainers.image.name="flipt"
LABEL org.opencontainers.image.source="https://github.com/flipt-io/flipt"

RUN apk add --no-cache postgresql-client \
openssl \
ca-certificates

RUN mkdir -p /etc/flipt && \
mkdir -p /var/opt/flipt

COPY $BINARY /
COPY config/*.yml /etc/flipt/config/

RUN addgroup flipt && \
adduser -S -D -g '' -G flipt -s /bin/sh flipt && \
chown -R flipt:flipt /etc/flipt /var/opt/flipt

EXPOSE 8080
EXPOSE 9000

USER flipt

CMD ["./flipt"]

0 comments on commit 557b871

Please sign in to comment.