Skip to content

Commit

Permalink
chore(deps): always update all packages in docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Jul 19, 2022
1 parent 77d99c7 commit 6aa84c6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM alpine:3.16.0
FROM alpine:3.16

RUN addgroup -S ory; \
adduser -S ory -G ory -D -h /home/ory -s /bin/nologin; \
chown -R ory:ory /home/ory

RUN apk --no-cache --update-cache --upgrade --latest add ca-certificates libssl1.1
RUN apk --no-cache --latest upgrade
RUN apk --no-cache --upgrade --latest add ca-certificates

COPY keto /usr/bin/keto

Expand Down
6 changes: 4 additions & 2 deletions .docker/Dockerfile-alpine
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM alpine:3.16.0
FROM alpine:3.16

RUN addgroup -S ory; \
adduser -S ory -G ory -D -H -s /bin/nologin
RUN apk --no-cache --update-cache --upgrade --latest add ca-certificates libssl1.1

RUN apk --no-cache --latest upgrade
RUN apk --no-cache --upgrade --latest add ca-certificates

COPY keto /usr/bin/keto

Expand Down
7 changes: 4 additions & 3 deletions .docker/Dockerfile-build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18.2-alpine3.14 AS builder
FROM golang:1.18-alpine3.16 AS builder

RUN apk -U --no-cache add build-base git gcc bash

Expand All @@ -18,13 +18,14 @@ ADD . .

RUN go build -tags sqlite -o /usr/bin/keto .

FROM alpine:3.16.0
FROM alpine:3.16

RUN addgroup -S ory; \
adduser -S ory -G ory -D -h /home/ory -s /bin/nologin; \
chown -R ory:ory /home/ory

RUN apk --no-cache --update-cache --upgrade --latest add ca-certificates libssl1.1
RUN apk --no-cache --latest upgrade
RUN apk --no-cache --upgrade --latest add ca-certificates

COPY --from=builder /usr/bin/keto /usr/bin/keto

Expand Down
6 changes: 4 additions & 2 deletions .docker/Dockerfile-sqlite
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.16.0
FROM alpine:3.16

# Because this image is built for SQLite, we create /home/ory and /home/ory/sqlite which is owned by the ory user
# and declare /home/ory/sqlite a volume.
Expand All @@ -10,7 +10,9 @@ FROM alpine:3.16.0
RUN addgroup -S ory; \
adduser -S ory -G ory -D -h /home/ory -s /bin/nologin; \
chown -R ory:ory /home/ory
RUN apk --no-cache --update-cache --upgrade --latest add ca-certificates libssl1.1

RUN apk --no-cache --latest upgrade
RUN apk --no-cache --upgrade --latest add ca-certificates

WORKDIR /home/ory

Expand Down

0 comments on commit 6aa84c6

Please sign in to comment.