-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
43 lines (27 loc) · 840 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#
# Enclave base image
#
FROM golang:1.22.8-alpine3.19@sha256:fe5bea2e1ab3ffebe0267393fea88fcb197e2dbbb1e2dbabeec6dd9ccb0e1871 AS base
RUN apk add make bash
#
# Enclave pre-image
#
FROM base AS builder
WORKDIR /go/src/github.com/0xsequence/waas-authenticator
ADD ./ ./
ARG VERSION
RUN make VERSION=${VERSION} build
#
# Enclave dev image
#
FROM base AS dev
WORKDIR /go/src/github.com/0xsequence/waas-authenticator
ENV CONFIG=./etc/waas-auth.conf
CMD ["make", "run"]
FROM ghcr.io/0xsequence/eiffel:v0.3.1@sha256:c0c0bf7144a6a25b00bf78e7d5cb632afae8b45f8b82ff38016fa8c61854a104
ARG ENV_ARG=dev2
RUN mkdir /workspace
ADD ./.eiffel/ /workspace/
ADD ./etc/waas-auth.${ENV_ARG}.conf /workspace/waas-auth.conf
COPY --from=builder /go/src/github.com/0xsequence/waas-authenticator/bin/waas-auth /workspace/waas-auth
CMD ["waas-auth"]