forked from temporalio/ui-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (22 loc) · 781 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
ARG BASE_SERVER_IMAGE=temporalio/base-server:1.15.7
ARG BASE_BUILDER_IMAGE=temporalio/base-builder:1.14.8
FROM ${BASE_BUILDER_IMAGE} AS server-builder
WORKDIR /home/server-builder
COPY go.mod go.sum ./
RUN go mod download
COPY . ./
RUN make build-server
##### UI server #####
FROM ${BASE_SERVER_IMAGE} AS ui-server
ARG TEMPORAL_CLOUD_UI="false"
WORKDIR /home/ui-server
RUN addgroup -g 5000 temporal
RUN adduser -u 5000 -G temporal -D temporal
RUN mkdir ./config
COPY --from=server-builder /home/server-builder/ui-server ./
COPY docker/start-ui-server.sh ./start-ui-server.sh
COPY docker/config-template.yaml ./config-template.yaml
RUN chown temporal:temporal /home/ui-server -R
EXPOSE 8080
ENTRYPOINT ["./start-ui-server.sh"]
ENV TEMPORAL_CLOUD_UI=$TEMPORAL_CLOUD_UI