Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ EXPOSE 23233/tcp
EXPOSE 9418/tcp

# Set the default command
ENTRYPOINT [ "/usr/local/bin/soft", "serve" ]
ENTRYPOINT [ "/entrypoint.sh", "/usr/local/bin/soft", "serve" ]

RUN apk update && apk add --update git bash openssh && rm -rf /var/cache/apk/*
RUN apk update && apk add --update git bash openssh su-exec && rm -rf /var/cache/apk/*

COPY entrypoint.sh /entrypoint.sh
COPY soft /usr/local/bin/soft
4 changes: 4 additions & 0 deletions docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ docker run \
--publish 23233:23233 \
--publish 9418:9418 \
-e SOFT_SERVE_INITIAL_ADMIN_KEYS="YOUR_ADMIN_KEY_HERE" \
-e PUID=1000 \
-e PGID=1000 \
--restart unless-stopped \
charmcli/soft-serve:latest
```
Expand All @@ -41,6 +43,8 @@ services:
- 9418:9418
environment:
SOFT_SERVE_INITIAL_ADMIN_KEYS: "YOUR_ADMIN_KEY_HERE"
PUID: 1000
PGID: 1000
restart: unless-stopped
```

Expand Down
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
chown -R ${PUID:-1000}:${PGID:-1000} /soft-serve
exec su-exec "${PUID:-1000}:${PGID:-1000}" "$@"