Skip to content

Commit

Permalink
Docker: Add dos2unix
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi311 committed Sep 8, 2024
1 parent 920bbbb commit 34d62c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV PUID=1000
ENV PGID=1000
ENV GOSU_VERSION 1.17

RUN apk add --no-cache tini
RUN apk add --no-cache tini dos2unix

# Install gosu
RUN set -eux; \
Expand Down Expand Up @@ -42,7 +42,8 @@ RUN pip install --no-cache-dir -r requirements.txt

COPY . .

RUN chmod +x *.sh
RUN chmod +x *.sh && \
dos2unix *.sh

ENTRYPOINT ["tini", "--", "/app/entrypoint.sh"]
CMD ["python", "-u", "main.py"]
5 changes: 3 additions & 2 deletions Dockerfile.slim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV PUID=1000
ENV PGID=1000

RUN apt-get update && \
apt-get install tini gosu --yes --no-install-recommends && \
apt-get install tini gosu dos2unix --yes --no-install-recommends && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand All @@ -16,7 +16,8 @@ RUN pip install --no-cache-dir -r requirements.txt

COPY . .

RUN chmod +x *.sh
RUN chmod +x *.sh && \
dos2unix *.sh

ENTRYPOINT ["/bin/tini", "--", "/app/entrypoint.sh"]
CMD ["python", "-u", "main.py"]

0 comments on commit 34d62c9

Please sign in to comment.