Skip to content

Commit

Permalink
Set /code as the default WORKDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
Norman Gehrsitz committed Nov 14, 2023
1 parent 9f4f31c commit f8eee2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -v -a -installsuffix cgo -o swag cmd/swag/
######## Start a new stage from scratch #######
FROM scratch

WORKDIR /root/
WORKDIR /code/

# Copy the Pre-built binary file from the previous stage
COPY --from=builder /app/swag /bin/swag
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ To build from source you need [Go](https://golang.org/dl/) (1.17 or newer).

Alternatively you can run the docker image:
```sh
docker run --rm -v $(pwd):/code -w /code ghcr.io/swaggo/swag:latest
docker run --rm -v $(pwd):/code ghcr.io/swaggo/swag:latest
```

Or download a pre-compiled binary from the [release page](https://github.com/swaggo/swag/releases).
Expand Down

0 comments on commit f8eee2f

Please sign in to comment.