Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy up dockerfile #210

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 7 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]