-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for running via a docker container when configured …
…correctly
- Loading branch information
1 parent
c41c440
commit f044054
Showing
7 changed files
with
217 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.vscode | ||
.vscode | ||
config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM golang:1.20-alpine AS build-stage | ||
|
||
WORKDIR /app | ||
|
||
COPY go.mod go.sum ./ | ||
|
||
RUN go mod download | ||
|
||
COPY *.go ./ | ||
COPY internal/ internal/ | ||
COPY pkg/ pkg/ | ||
|
||
RUN CGO_ENABLED=0 GOOS=linux go build -o /speakeasy-proxy | ||
|
||
FROM alpine:latest | ||
|
||
WORKDIR / | ||
|
||
COPY --from=build-stage /speakeasy-proxy /speakeasy-proxy | ||
|
||
ENTRYPOINT ["/speakeasy-proxy"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.