forked from eclipse-emfcloud/coffee-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (15 loc) · 729 Bytes
/
Dockerfile
File metadata and controls
24 lines (15 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM node:10-buster
# Install Java and update
RUN apt-get update && apt-get install -y default-jdk libsecret-1-dev xvfb libx11-dev libxkbfile-dev maven libxml2-utils && apt-get upgrade -y
WORKDIR /coffee-editor
RUN useradd -ms /bin/bash theia
COPY --chown=theia:theia . /coffee-editor
# Set location to place global npm dependencies
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
# Expose port
EXPOSE 3000
USER theia
RUN /coffee-editor/run.sh -f && \
wget http://35.246.187.143/favicon.ico -P /coffee-editor/web/browser-app/lib && \
sed -i 's/<\/head>/<link rel="icon" href="favicon.ico" \/><\/head>/g' /coffee-editor/web/browser-app/lib/index.html
CMD cd /coffee-editor/web/browser-app && yarn start --hostname 0.0.0.0