Skip to content

Commit

Permalink
clean up image build
Browse files Browse the repository at this point in the history
  • Loading branch information
ihaveamac committed Oct 7, 2020
1 parent b2249b3 commit 067bd21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
data
.git
.github
.gitignore
.travis.yml
.dockerignore
Dockerfile
config.ini
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM python:3.8.6-slim-buster
LABEL org.opencontainers.image.source https://github.com/nh-server/Kurisu
ENV IS_DOCKER=1
ENV HOME /home/kurisu
RUN useradd -m -d $HOME -s /bin/sh -u 2849 kurisu
WORKDIR $HOME
COPY ./requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
ENV IS_DOCKER=1
ARG COMMIT="unknown"
USER kurisu
ARG BRANCH="unknown"
ENV COMMIT_SHA=${COMMIT}
ENV COMMIT_BRANCH=${BRANCH}
USER kurisu
ARG COMMIT="unknown"
ENV COMMIT_SHA=${COMMIT}
COPY --chown=2849:2849 . .
CMD ["python3", "kurisu.py"]

0 comments on commit 067bd21

Please sign in to comment.