-
Notifications
You must be signed in to change notification settings - Fork 75
/
Dockerfile
43 lines (32 loc) · 1.13 KB
/
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
FROM node:18-alpine AS nodegui
WORKDIR /gui
COPY core/gui/package.json core/gui/yarn.lock ./
RUN corepack enable && corepack prepare [email protected] --activate && yarn set version --yarn-path 4.5.1
# Fake git-version.js during yarn install to prevent git from causing cache
# invalidation of dependencies
RUN touch git-version.js && YARN_NODE_LINKER=node-modules yarn install
COPY core/gui .
# Position of .git doesn't matter since it's only there for the revision hash
COPY .git ./.git
RUN apk add --no-cache git && \
node git-version.js && \
apk del git && \
yarn run build
FROM sbtscala/scala-sbt:eclipse-temurin-jammy-11.0.17_8_1.9.3_2.13.11
# copy all projects under core to /core
WORKDIR /core
COPY core/ .
RUN apt-get update
RUN apt-get install -y netcat unzip python3-pip
RUN pip3 install python-lsp-server python-lsp-server[websockets]
RUN pip3 install -r requirements.txt
RUN pip3 install -r operator-requirements.txt
WORKDIR /core
# Add .git for runtime calls to jgit from OPversion
COPY .git ../.git
COPY --from=nodegui /gui/dist ./gui/dist
RUN scripts/build-services.sh
CMD ["scripts/deploy-docker.sh"]
EXPOSE 8080
EXPOSE 9090
EXPOSE 8085