Skip to content

Commit

Permalink
bump base container
Browse files Browse the repository at this point in the history
  • Loading branch information
YevheniiSemendiak committed Jan 16, 2025
1 parent b9280d0 commit f505ec2
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM ubuntu:23.04
FROM ubuntu:25.04

ADD https://github.com/tsl0922/ttyd/releases/download/1.6.3/ttyd.x86_64 /usr/bin/ttyd
RUN chmod +x /usr/bin/ttyd

ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini /sbin/tini
RUN chmod +x /sbin/tini
ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini /usr/sbin/tini
RUN chmod +x /usr/sbin/tini

ARG BASE_DIR=/opt/apolo/web-shell
RUN mkdir -p $BASE_DIR
Expand All @@ -18,10 +18,7 @@ RUN apt-get update -qq && \
python -m pip install -U pip --break-system-packages && \
pip3 install -U --no-cache-dir -r $BASE_DIR/python.txt --break-system-packages && \
apt autoclean && apt autoremove -y --purge && rm -rf /var/lib/apt/lists/* && \
rm $BASE_DIR/* && \
ln -s $(which neuro) /usr/bin/apolo && \
ln -s $(which neuro-flow) /usr/bin/apolo-flow && \
ln -s $(which neuro-extras) /usr/bin/apolo-extras
rm $BASE_DIR/*

EXPOSE 7681

Expand All @@ -30,5 +27,5 @@ ENV SHELL=/bin/bash WORKDIR=/root
COPY docker-entrypoint.sh apolo.readme $BASE_DIR/
RUN chmod +x $BASE_DIR/docker-entrypoint.sh

ENTRYPOINT ["/sbin/tini", "--", "/opt/apolo/web-shell/docker-entrypoint.sh"]
ENTRYPOINT ["/usr/sbin/tini", "--", "/opt/apolo/web-shell/docker-entrypoint.sh"]
CMD ["ttyd", "screen", "-A", "-xR", "apolo"]

0 comments on commit f505ec2

Please # to comment.