Skip to content

Commit

Permalink
Install rust in docker to support installation of z-base-32
Browse files Browse the repository at this point in the history
  • Loading branch information
miteshashar committed Oct 31, 2023
1 parent 7ba0838 commit b5f05e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,22 @@ RUN chsh -s /usr/sbin/nologin root
# hadolint ignore=DL3008
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
apt-get update -yqq \
&& apt-get install -yqq --no-install-recommends supervisor \
&& apt-get install -yqq --no-install-recommends supervisor curl \
&& apt-get autoclean -yqq \
&& apt-get autoremove -yqq \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -pv /var/log/supervisor
RUN addgroup --gid 1000 funnel && adduser --uid 1000 --gid 1000 funnel
ENV PATH "$PATH:/home/funnel/.local/bin"
USER funnel
# hadolint ignore=DL4006
RUN curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | /bin/bash -s -- -y
ENV PATH "/home/funnel/.cargo/bin:$PATH"
WORKDIR /home/funnel/app

COPY --chown=funnel:funnel Makefile Makefile
COPY --chown=funnel:funnel requirements/base.txt requirements/base.txt
RUN mkdir -pv /home/funnel/.cache/pip
RUN --mount=type=cache,target=/home/funnel/.cache/pip,uid=1000,gid=1000 make install-python

COPY --chown=funnel:funnel . .
Expand Down

0 comments on commit b5f05e0

Please sign in to comment.