-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from NotActuallyTerry/notactuallyterry/docker…
…file-refactor Tidy up dockerfile
- Loading branch information
Showing
1 changed file
with
7 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,28 +6,18 @@ LABEL maintainer="GitHub Services <[email protected]>" | |
|
||
ARG TZ='UTC' | ||
|
||
ENV DEFAULT_TZ ${TZ} | ||
|
||
COPY . /opt/github-team-sync | ||
WORKDIR /opt/github-team-sync | ||
|
||
RUN apk add --no-cache \ | ||
libxml2-dev \ | ||
libxslt-dev \ | ||
python3-dev \ | ||
make \ | ||
gcc \ | ||
libffi-dev \ | ||
build-base \ | ||
openssl-dev \ | ||
cargo \ | ||
tzdata | ||
ENV DEFAULT_TZ=${TZ} | ||
|
||
# Fix the warning where no timezone is specified | ||
RUN cp /usr/share/zoneinfo/${DEFAULT_TZ} /etc/localtime | ||
|
||
RUN pip install --no-cache-dir --upgrade pipenv | ||
|
||
WORKDIR /opt/github-team-sync | ||
COPY Pipfile Pipfile.lock . | ||
|
||
RUN pipenv install | ||
|
||
CMD pipenv run flask run | ||
COPY . /opt/github-team-sync | ||
|
||
CMD ["pipenv", "run", "flask", "run"] |