Skip to content

Commit

Permalink
Add dockerfile (#24)
Browse files Browse the repository at this point in the history
* chore: bind goflat to version

* chore: add dockerfile
  • Loading branch information
notdodo authored Dec 9, 2023
1 parent 818a205 commit e05066e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.git
.github
README.md
Makefile
.env_example
.vscode
.gitignore
docker-compose.yaml
Dockerfile
*.json
dist
iamme*
IAMme-IAMme*
*.sarif
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:alpine as app-builder
WORKDIR /go/src/app
COPY . .
RUN CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' -tags timetzdata -o /go/bin/iamme

FROM scratch
COPY --from=app-builder /go/bin/iamme /iamme
COPY .env /.env
COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
HEALTHCHECK NONE
ENTRYPOINT [ "/iamme" ]
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
- CAP_SETUID
ports:
- "127.0.0.1:7474:7474"
- "127.0.0.1:7687:7687"
- "0.0.0.0:7687:7687"
volumes:
- okta_Data:/data
environment:
Expand Down

0 comments on commit e05066e

Please sign in to comment.