From afa4a089ce4903ab0739f05e1002a5dedd4b4e50 Mon Sep 17 00:00:00 2001 From: virusdefender Date: Sat, 25 Nov 2017 19:43:26 +0800 Subject: [PATCH] move Dockerfile --- build/Dockerfile => Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename build/Dockerfile => Dockerfile (90%) diff --git a/build/Dockerfile b/Dockerfile similarity index 90% rename from build/Dockerfile rename to Dockerfile index 693610c..2e8491d 100644 --- a/build/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM ubuntu:16.04 +FROM registry.docker-cn.com/library/ubuntu:16.04 ENV DEBIAN_FRONTEND noninteractive -COPY java_policy /etc +COPY build/java_policy /etc RUN buildDeps='software-properties-common git libtool cmake python-dev python-pip libseccomp-dev' && \ apt-get update && apt-get install -y python python-pkg-resources gcc g++ $buildDeps && \ @@ -16,8 +16,7 @@ RUN mkdir -p /judger_run /test_case /log /code && \ useradd -r compiler HEALTHCHECK --interval=5s --retries=3 CMD python /code/service.py +ADD server /code WORKDIR /code - -VOLUME ["/code"] EXPOSE 8080 CMD /bin/bash /code/run.sh