diff options
author | Wonderfall <wonderfall@riseup.net> | 2016-01-04 12:52:59 +0100 |
---|---|---|
committer | Wonderfall <wonderfall@riseup.net> | 2016-01-04 12:52:59 +0100 |
commit | 3dd41af67bea917827524797f4c6cbad8b73b364 (patch) | |
tree | 8f8f3d5457cf8d13ef49c95c5b200b760fe857f5 | |
parent | 5f05a3c5857a3f8f5344db093f023e21ff18f6de (diff) | |
download | searxng-3dd41af67bea917827524797f4c6cbad8b73b364.tar.gz searxng-3dd41af67bea917827524797f4c6cbad8b73b364.zip |
Better Dockerfile
-rw-r--r-- | Dockerfile | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Dockerfile b/Dockerfile index 208c4d69a..acc2b2e4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,8 @@ FROM alpine:3.3 ENV BASE_URL=False IMAGE_PROXY=False - EXPOSE 8888 - WORKDIR /usr/local/searx - CMD ["./run.sh"] RUN adduser -D -h /usr/local/searx -s /bin/sh searx searx \ @@ -16,7 +13,7 @@ RUN adduser -D -h /usr/local/searx -s /bin/sh searx searx \ && echo 'python searx/webapp.py' >> run.sh \ && chmod +x run.sh -COPY requirements.txt /usr/local/searx/requirements.txt +COPY requirements.txt . RUN apk -U add \ build-base \ @@ -31,7 +28,7 @@ RUN apk -U add \ openssl \ openssl-dev \ ca-certificates \ - && pip install --no-cache -r /usr/local/searx/requirements.txt \ + && pip install --no-cache -r requirements.txt \ && apk del \ build-base \ python-dev \ @@ -44,9 +41,9 @@ RUN apk -U add \ ca-certificates \ && rm -f /var/cache/apk/* -COPY . /usr/local/searx +COPY . . -RUN chown -R searx:searx /usr/local/searx +RUN chown -R searx:searx * USER searx |