-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Dockerfile: Move to smaller alpine base image"
This reverts commit 697017f.
- Loading branch information
Showing
1 changed file
with
11 additions
and
22 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 |
---|---|---|
@@ -1,27 +1,16 @@ | ||
FROM python:3-alpine | ||
|
||
WORKDIR /bot | ||
RUN chmod 777 /bot | ||
|
||
# install ca-certificates so that HTTPS works consistently | ||
RUN apk add --no-cache --update \ | ||
ca-certificates \ | ||
aria2 \ | ||
libmagic \ | ||
python3-lxml \ | ||
curl \ | ||
pv \ | ||
jq | ||
|
||
RUN apk add --no-cache --update --virtual .build-deps \ | ||
build-base \ | ||
libffi-dev \ | ||
openssl-dev | ||
FROM ubuntu:18.04 | ||
|
||
WORKDIR /usr/src/app | ||
RUN chmod 777 /usr/src/app | ||
RUN apt -qq update | ||
RUN apt -qq install -y aria2 python3 python3-pip locales python3-lxml curl pv jq | ||
COPY requirements.txt . | ||
RUN pip3 install --no-cache-dir -r requirements.txt | ||
RUN apk del .build-deps | ||
COPY . . | ||
RUN chmod +x *.sh | ||
RUN chmod +x aria.sh | ||
RUN locale-gen en_US.UTF-8 | ||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
CMD ["sh", "./start.sh"] | ||
CMD ["bash","start.sh"] |