forked from eclipse-emfcloud/coffee-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (22 loc) · 910 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
FROM ubuntu:18.04 AS cpp-theia-base
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y default-jdk maven && \
apt-get install wget build-essential cmake libopenblas-dev gnupg curl make git g++-multilib clangd-10 gdb libsecret-1-dev -y
RUN update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-10 100
RUN curl -fsSL https://deb.nodesource.com/setup_12.x | bash - && \
apt-get install nodejs -y && \
npm install -g yarn
# Make readable for root only
RUN chmod -R 750 /var/run/
RUN useradd -ms /bin/bash theia
WORKDIR /coffee-editor
COPY --chown=theia:theia . .
USER theia
RUN ./run.sh -bcf && \
cp ./web/favicon.ico ./web/browser-app/lib
RUN sed -i 's/<\/head>/<link rel="icon" href="favicon.ico" \/><\/head>/g' web/browser-app/lib/index.html
WORKDIR /coffee-editor/web/browser-app
EXPOSE 3000
CMD yarn start --hostname 0.0.0.0