Skip to content

Commit

Permalink
fix mount points for docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
erudenko committed Oct 25, 2021
1 parent 6a668f1 commit 95a0b52
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@ RUN go build -o /identifo .
FROM alpine:3.13.2
RUN apk --no-cache add ca-certificates

WORKDIR /root/
WORKDIR /
COPY --from=builder /identifo .
COPY --from=node_builder /identifo/static ./static
COPY cmd/config-boltdb.yaml ./server-config.yaml
COPY jwt/test_artifacts/private.pem ./jwt/test_artifacts/private.pem
RUN mkdir ./data
RUN mkdir -p /data

EXPOSE 8081/tcp

ENV IDENTIFO_ADMIN_LOGIN=admin@admin.com
ENV IDENTIFO_ADMIN_PASSWORD=password


ENTRYPOINT ["./identifo"]
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export IDENTIFO_ADMIN_PASSWORD = password


run_boltdb:
mkdir -p ./data
go run main.go --config=file://./cmd/config-boltdb.yaml
run_mem:
go run main.go --config=file://./cmd/config-mem.yaml
Expand Down
4 changes: 2 additions & 2 deletions cmd/config-boltdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ login:
loginWith:
username: false
phone: false
email: false
email: true
federated: false
tfaType: app
tfaType: sms
keyStorage:
type: local
s3:
Expand Down

0 comments on commit 95a0b52

Please sign in to comment.