Skip to content

Commit

Permalink
Switch to gosu
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Mar 2, 2021
1 parent a726543 commit 6bf6ca7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.7.1-r2 (2021/03/02)

* Switch to `gosu`

## 0.7.1-r1 (2021/02/28)

* Fix permissions
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
ARG ANONADDY_VERSION=0.7.1

FROM --platform=${TARGETPLATFORM:-linux/amd64} crazymax/gosu:latest AS gosu
FROM --platform=${TARGETPLATFORM:-linux/amd64} crazymax/alpine-s6:3.13-2.1.0.2
LABEL maintainer="CrazyMax"

ARG TARGETPLATFORM
COPY --from=gosu / /
RUN apk --update --no-cache add \
bash \
ca-certificates \
Expand Down Expand Up @@ -49,7 +52,6 @@ RUN apk --update --no-cache add \
postfix \
postfix-mysql \
shadow \
su-exec \
tar \
tzdata \
&& apk --update-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing add \
Expand Down
2 changes: 1 addition & 1 deletion rootfs/usr/local/bin/anonaddy
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

su-exec anonaddy:anonaddy php /var/www/anonaddy/artisan "$@"
gosu anonaddy:anonaddy php /var/www/anonaddy/artisan "$@"

0 comments on commit 6bf6ca7

Please sign in to comment.