-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (14 loc) · 811 Bytes
/
Dockerfile
File metadata and controls
23 lines (14 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM node:20-alpine AS extension
ARG VSIX_VERSION=""
COPY . /src/
RUN cd /src && npm run install:all && npm test && VSIX_VERSION=${VSIX_VERSION} npm run package:web
FROM ghcr.io/ldproxy/xtracfg:4.3.5 AS xtracfg
FROM codercom/code-server:4.107.1
COPY --chmod=0644 --from=extension /src/dist/vsix/ldproxy-editor-web-*.vsix /ldproxy-editor.vsix
COPY --chmod=0755 --from=extension /src/startup.sh /entrypoint.d/
COPY --chmod=0755 --from=xtracfg /xtracfg /usr/bin/
ENV HOME=/settings
VOLUME /settings
VOLUME /data
USER root
ENTRYPOINT ["/usr/bin/entrypoint.sh", "--ignore-last-opened", "--bind-addr", "0.0.0.0:80", "--welcome-text", "\"Hello\"", "--app-name", "\"ldproxy-editor\"", "--disable-telemetry", "--disable-update-check", "--disable-workspace-trust", "--disable-getting-started-override", "/data"]