Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-local/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Docker Compose configuration to support local testing with AWS services.
- `db.table: kt_local`
- `db.parallel: 2`
3. Run the server
- `AWS_ACCESS_KEY_ID=local AWS_SECRET_ACCESS_KEY=local AWS_ENDPOINT_URL=http://localhost:8000 AWS_REGION=local-kt go run github.com/signalapp/keytransparency/cmd/kt-server -config ./example/config.yaml `
- `AWS_ACCESS_KEY_ID=local AWS_SECRET_ACCESS_KEY=local AWS_ENDPOINT_URL=http://localhost:8000 AWS_REGION=local-kt go run github.com/signalapp/keytransparency/cmd/kt-server -config ./example/config.yaml`
4. Test with kt-client
5. Stop the server
6. Stop the container
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
ARG GO_VERSION
FROM --platform=linux/amd64 golang:${GO_VERSION}-alpine AS build
COPY . /src
RUN cd /src/cmd/kt-server && go build
WORKDIR /src/cmd/kt-server
RUN go build

FROM --platform=linux/amd64 alpine:latest AS run
COPY --from=build /src/cmd/kt-server/kt-server /bin/kt-server
Expand Down