- Notifications
You must be signed in to change notification settings - Fork 410
/
Copy pathDockerfile
20 lines (14 loc) · 614 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM java:8-jdk-alpine
EXPOSE 8080
RUN set -ex && \
if [ $(wget -qO- ipinfo.io/country) == CN ]; then echo "http://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories ;fi && \
apk update && \
apk add --no-cache zsh git openssh
# Install oh-my-zsh
RUN git clone --depth=1 git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh \
&& cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
ENV SHELL /bin/zsh
ADD backend/target/ide-backend.jar /root
ADD backend/src/main/resources/lib /root/lib
WORKDIR /root
CMD ["java", "-jar", "ide-backend.jar", "--PTY_LIB_FOLDER=/root/lib"]