Skip to content

Commit

Permalink
#234 Add Favicon
Browse files Browse the repository at this point in the history
* reuse the favicon from the deployment page
* small tweaks to dockerfile
  • Loading branch information
jfaltermeier committed Apr 29, 2020
1 parent a07883f commit 4eff627
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ RUN apt-get update && apt-get install -y default-jdk libsecret-1-dev xvfb libx11

WORKDIR /coffee-editor

COPY . /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
EXPOSE 8081

# Run command
RUN npm install -g yarn && npm install -g lerna
USER theia

RUN ./run.sh -f
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 ["sh", "-c", "./run.sh -r"]
CMD cd /coffee-editor/web/browser-app && yarn start --hostname 0.0.0.0
2 changes: 1 addition & 1 deletion dockerfiles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This will create the image as `coffee-editor:latest`

## Run

`docker run -p 0.0.0.0:3000:3000 -p 0.0.0.0:8081:8081 -d coffee-editor`
`docker run -p 0.0.0.0:3000:3000 -d coffee-editor`

Go to [http://localhost:3000](URL)

Expand Down
3 changes: 0 additions & 3 deletions dockerfiles/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#!/bin/bash
echo [~] CLEAN-UP [~]
rm -f com.eclipsesource.modelserver.example-0.0.1-20190731.133707-35-standalone.jar

echo [~] BUILDING COFFEE-EDITOR [~]
cd ..
./run.sh -b -c -d -f
Expand Down

0 comments on commit 4eff627

Please sign in to comment.