27 lines
635 B
Docker
27 lines
635 B
Docker
FROM ubuntu:24.04 AS ubuntu
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && apt-get upgrade -y
|
|
RUN apt-get install -y --no-install-recommends \
|
|
gosu
|
|
|
|
COPY ./packages.list /tmp
|
|
RUN xargs apt-get install -y --no-install-recommends </tmp/packages.list && \
|
|
apt-get clean && \
|
|
rm /tmp/packages.list
|
|
|
|
COPY ./build_time_scripts.sh /tmp
|
|
COPY ./custom /tmp/custom
|
|
RUN /tmp/build_time_scripts.sh /tmp/custom && \
|
|
rm -rf /tmp/build_time_scripts.sh /tmp/custom
|
|
|
|
WORKDIR /home/ubuntu
|
|
|
|
ENV SECRET="ubuntu"
|
|
|
|
COPY ./entrypoint.sh /usr/bin/entrypoint-docker.sh
|
|
|
|
ENTRYPOINT ["/bin/sh", "/usr/bin/entrypoint-docker.sh"]
|
|
CMD ["/usr/bin/bash"]
|