This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker compose and running instructions (#22)
* update to ssi sdk * update readme * config, did router test * health and readiness api tests * did http test * pretty picture; readme update * add docker-compose
- Loading branch information
Gabe
authored
Apr 5, 2022
1 parent
e291f40
commit c6713e1
Showing
4 changed files
with
52 additions
and
2 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
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,20 @@ | ||
FROM golang:1.17-alpine | ||
|
||
# Create directory for our app inside the container | ||
WORKDIR /app | ||
|
||
# Prepare dependencies | ||
COPY go.mod ./ | ||
COPY go.sum ./ | ||
RUN go mod download | ||
|
||
# Copy code /to the container image. | ||
COPY . ./ | ||
|
||
# Build the binary and call it "docker-ssi-service" | ||
RUN ls -alt | ||
RUN go build -tags jwx_es256k -o /docker-ssi-service ./cmd | ||
|
||
EXPOSE 3000 | ||
|
||
CMD [ "/docker-ssi-service" ] |
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,8 @@ | ||
version: "3.98" | ||
services: | ||
web: | ||
build: | ||
context: ../ | ||
dockerfile: build/Dockerfile | ||
ports: | ||
- "8080:3000" |
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