diff options
| -rw-r--r-- | Dockerfile | 27 | ||||
| -rw-r--r-- | docker-compose.yml | 8 |
2 files changed, 35 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f3e4637 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM golang:1.16.6-alpine3.14 AS build_base + +RUN apk add --no-cache git + +WORKDIR /tmp/capybara + +COPY go.mod . + +COPY go.sum . + +RUN go mod download + +COPY . . + +RUN go build -o ./out/capybara . + +FROM alpine:3.14 + +RUN apk add ca-certificates + +COPY --from=build_base /tmp/capybara/out/capybara /app/capybara + +WORKDIR /app + +EXPOSE 8080 + +CMD ["./capybara"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6dc1185 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +# NOTE: There is no official Capybara Docker image *yet*. + +version: "3.3" +services: + capybara: + ports: + - "8080:8080" + image: fuwn/capybara |