Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
illvart committed Apr 9, 2024
1 parent a0b8447 commit 643bd87
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ ENV TZ=Asia/Jakarta \
PATH=/opt/venv/bin:/app/bin:$PATH \
CHROME_BIN=/usr/bin/google-chrome \
DISPLAY=:99
ARG LANG=en_US

WORKDIR /app
COPY . .

RUN set -ex \
&& apt-get -qqy update \
&& apt-get -qqy install --no-install-recommends \
tini \
gnupg \
git \
curl \
Expand All @@ -40,7 +40,7 @@ RUN set -ex \
libnss3 \
unzip \
build-essential \
&& localedef --quiet -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
&& localedef --quiet -i ${LANG} -c -f UTF-8 -A /usr/share/locale/locale.alias ${LANG}.UTF-8 \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
&& dpkg-reconfigure --force -f noninteractive tzdata >/dev/null 2>&1 \
&& install -m 0755 -d /etc/apt/keyrings \
Expand All @@ -65,5 +65,4 @@ RUN set -ex \
&& apt-get -qqy clean \
&& rm -rf -- /var/lib/apt/lists/* /var/cache/apt/archives/* /etc/apt/sources.list.d/* /usr/share/man/* /usr/share/doc/* /var/log/* /tmp/* /var/tmp/*

ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["python3", "-m", "getter"]
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.9"
services:
worker:
build: .
Expand Down
1 change: 0 additions & 1 deletion lite-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.9"
services:
getter:
build:
Expand Down
5 changes: 2 additions & 3 deletions lite.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ ENV TZ=Asia/Jakarta \
DEBIAN_FRONTEND=noninteractive \
VIRTUAL_ENV=/opt/venv \
PATH=/opt/venv/bin:/app/bin:$PATH
ARG LANG=en_US

WORKDIR /app
COPY . .

RUN set -ex \
&& apt-get -qqy update \
&& apt-get -qqy install --no-install-recommends \
tini \
gnupg2 \
git \
locales \
tzdata \
build-essential \
&& localedef --quiet -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
&& localedef --quiet -i ${LANG} -c -f UTF-8 -A /usr/share/locale/locale.alias ${LANG}.UTF-8 \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
&& dpkg-reconfigure --force -f noninteractive tzdata >/dev/null 2>&1 \
&& python3 -m venv $VIRTUAL_ENV \
Expand All @@ -35,5 +35,4 @@ RUN set -ex \
&& apt-get -qqy clean \
&& rm -rf -- /var/lib/apt/lists/* /var/cache/apt/archives/* /etc/apt/sources.list.d/* /usr/share/man/* /usr/share/doc/* /var/log/* /tmp/* /var/tmp/*

ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["python3", "-m", "getter"]
1 change: 0 additions & 1 deletion local-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.9"
services:
getter:
build: .
Expand Down

0 comments on commit 643bd87

Please sign in to comment.