forked from EclipseFdn/open-vsx.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (21 loc) · 809 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
# Builder image to compile the website
FROM ubuntu as builder
WORKDIR /workdir
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
bash \
ca-certificates \
curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# See https://github.com/nodesource/distributions/blob/main/README.md#debinstall
RUN curl -sSL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install -y nodejs
RUN npm install --global yarn@1.*
COPY . /workdir
RUN /usr/bin/yarn --cwd website \
&& /usr/bin/yarn --cwd website build
# Main image derived from openvsx-server
FROM ghcr.io/eclipse/openvsx-server:6600892
COPY --from=builder --chown=openvsx:openvsx /workdir/website/static/ BOOT-INF/classes/static/
COPY --from=builder --chown=openvsx:openvsx /workdir/configuration/ config/