-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
34 lines (26 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM alpine:3.21
ARG BUILD_DATE
ARG VERSION
ARG REVISION
LABEL org.opencontainers.image.title=graphql-protect \
org.opencontainers.image.description="A dead-simple yet highly customizable security proxy compatible with any HTTP GraphQL Server or Gateway." \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.authors=ldebruijn \
org.opencontainers.image.url=https://github.com/ldebruijn/graphql-protect \
org.opencontainers.image.documentation=https://github.com/ldebruijn/graphql-protect \
org.opencontainers.image.source=https://github.com/ldebruijn/graphql-protect \
org.opencontainers.image.version=$VERSION \
org.opencontainers.image.revision=$REVISION \
org.opencontainers.image.licenses=MIT \
org.opencontainers.image.base.name=alpine
# Create new user
RUN addgroup -g 1001 -S go && \
adduser -u 1001 -S go -G go && \
mkdir /app
# Make sure we don't run as root
USER go
WORKDIR /app
COPY graphql-protect /app/graphql-protect
EXPOSE 8080
ENTRYPOINT ["/app/graphql-protect"]
CMD ["serve"]