Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #242 from go-dummy/docs/example
Browse files Browse the repository at this point in the history
docs(examples/docker): change dockerfile
  • Loading branch information
sashamelentyev authored Jan 15, 2022
2 parents 3e4d64a + 5a4d997 commit 1f458ca
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions examples/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM golang:latest

RUN git clone https://github.com/go-dummy/dummy.git
RUN go install github.com/go-dummy/dummy/cmd/dummy@latest

COPY ./openapi3.yml ./dummy
COPY ./openapi3.yml .

WORKDIR ./dummy
WORKDIR .

RUN go mod download

CMD ["go", "run", "./cmd/dummy", "-port=8080", "server", "openapi3.yml"]
CMD ["dummy", "-port=8080", "server", "openapi3.yml"]

0 comments on commit 1f458ca

Please sign in to comment.