aboutsummaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile.web
blob: dd25662e0f26b249a9a757f1ee6eb400b8c57fe4 (plain) (blame)
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
# SPDX-FileCopyrightText: 2023-2024 The Refinery Authors <https://refinery.tools/>
#
# SPDX-License-Identifier: EPL-2.0

FROM base AS web-base
# Layer with platform-dependent dependencies, slow changing.
ADD --link web_lib /app/lib

FROM web-base AS web-amd64
# Layer with platform-dependent startup script containing references to all
# dependency versions.
ADD --link web_amd64_bin /app/bin

FROM web-base AS web-arm64
# Layer with platform-dependent startup script containing references to all
# dependency versions.
ADD --link web_arm64_bin /app/bin

FROM web-$TARGETARCH
# Layer with platform-independent application jars.
ADD --link web_app_lib /app/lib
# Common settings added on top.
ENV REFINERY_LISTEN_HOST=0.0.0.0 REFINERY_LISTEN_PORT=8888
EXPOSE 8888
USER 1000
WORKDIR /app
ENTRYPOINT ["/app/bin/refinery-language-web"]