forked from malach-it/boruta-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.gateway
31 lines (20 loc) · 907 Bytes
/
Dockerfile.gateway
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
FROM elixir:1.14-otp-25-alpine AS builder
RUN apk --no-cache --update add build-base git
ENV MIX_ENV=prod
RUN mix local.hex --force
RUN mix local.rebar --force
WORKDIR /app
COPY . .
RUN rm -rf deps
RUN mix do clean, deps.get
RUN mix compile
WORKDIR /app
RUN mix release boruta_gateway --force --overwrite
FROM elixir:1.14-otp-25-alpine
WORKDIR /app
COPY --from=builder /app/_build/prod/rel/boruta_gateway ./
# File used for gateway static configuration, used in combination with `BORUTA_GATEWAY_CONFIGURATION_PATH` environment variable
COPY /static_config/example-gateway-configuration.yml config/example-gateway-configuration.yml
COPY /static_config/example-httpbin-configuration.yml config/example-httpbin-configuration.yml
COPY /static_config/example-protected-httpbin-configuration.yml config/example-protected-httpbin-configuration.yml
CMD ["/bin/sh", "-c", "/app/bin/boruta_gateway start"]