Skip to content

Commit

Permalink
Fix docker build and run example
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Mar 23, 2024
1 parent 30c4e3a commit 9fb81c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ RUN go mod download
COPY . .
RUN go build -o tf2bdd

FROM golang:latest
RUN apt update && apt install dumb-init -y
FROM alpine:latest
RUN apk add dumb-init
WORKDIR /app
COPY --from=build /build/tf2bdd .

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ You will probably want to create something like a systemd service to automate th
## Running Docker

docker run --rm --name tf2bdd -it \
-p 127.0.0.1:8899:8899 \
-p 8899:8899 \
--mount type=bind,source="$(pwd)"/db.sqlite,target=/app/db.sqlite \
--mount type=bind,source="$(pwd)"/tf2bdd.yml,target=/app/tf2bdd.yml \
ghcr.io/leighmacdonald/tf2bdd:latest

0 comments on commit 9fb81c3

Please sign in to comment.