Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Smith-Cruise committed Feb 25, 2018
1 parent c94c70c commit 94b48ad
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,37 @@
FROM openjdk:8u151-jre-alpine3.7
FROM ubuntu:16.04

LABEL "version"="1.0"
LABEL "maintainer"="chendingchao1@126.com"

WORKDIR /eagle-oj

COPY ./eagle-oj-web/target/eagle-oj-web-1.0.jar /eagle-oj
RUN apt update && \
apt install -y git && \
apt install -y openjdk-8-jre && \
apt install -y openjdk-8-jdk && \
apt install -y maven && \
apt install -y curl && \
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
apt install -y nodejs && \
git clone https://github.com/Eagle-OJ/eagle-oj-web.git && \
git clone https://github.com/Eagle-OJ/eagle-oj-api.git && \
cd eagle-oj-web && \
npm install && \
npm run build && \
mv dist/ ../eagle-oj-api/eagle-oj-web/src/main/resources/public/ && \
cd ../eagle-oj-api && \
mvn clean package && \
mv eagle-oj-web/target/eagle-oj-web-1.0.jar /eagle-oj && \
cd /eagle-oj && \
apt clean && \
rm -rf eagle-oj-api && \
rm -rf eagle-oj-web && \
apt remove -y git && \
apt remove -y maven && \
apt remove -y nodejs && \
apt remove -y openjdk-8-jdk && \
rm -rf /root/.m2 && \
rm -rf /root/.npm

VOLUME ["/eagle-oj/log"]

Expand Down

0 comments on commit 94b48ad

Please sign in to comment.