2021-11-20 01:07:46 +03:00
|
|
|
################################################################################
|
|
|
|
# https://github.com/linuxserver/docker-code-server/pkgs/container/code-server
|
|
|
|
################################################################################
|
|
|
|
FROM epicmorg/vscode-server:latest
|
|
|
|
|
|
|
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# ARGuments
|
|
|
|
##################################################################
|
|
|
|
ENV BuildDocker true
|
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# docker setup
|
|
|
|
##################################################################
|
|
|
|
|
|
|
|
#Install packages
|
2024-08-25 21:24:33 +03:00
|
|
|
RUN install -m 0755 -d /etc/apt/keyrings && \
|
|
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc && \
|
|
|
|
chmod a+r /etc/apt/keyrings/docker.asc && \
|
|
|
|
echo "deb [signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu noble nightly" > /etc/apt/sources.list.d/docker.list && \
|
|
|
|
echo "deb [signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu noble stable" >> /etc/apt/sources.list.d/docker.list && \
|
|
|
|
echo "deb [signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu noble test" >> /etc/apt/sources.list.d/docker.list && \
|
2021-11-20 01:07:46 +03:00
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends --allow-unauthenticated \
|
2024-08-25 21:24:33 +03:00
|
|
|
docker-ce \
|
|
|
|
docker-ce-cli \
|
|
|
|
containerd.io \
|
|
|
|
docker-buildx-plugin \
|
|
|
|
docker-compose-plugin
|
2021-11-20 01:07:46 +03:00
|
|
|
|
|
|
|
# A better fix for TW-52939 Dockerfile build fails because of aufs
|
|
|
|
VOLUME /var/lib/docker
|
|
|
|
|
|
|
|
COPY run-docker.sh /services/run-docker.sh
|
|
|
|
RUN chmod +x /services/run-docker.sh && \
|
|
|
|
sync
|
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# docker compose setup
|
|
|
|
##################################################################
|
|
|
|
COPY docker-compose-update /usr/local/bin/docker-compose-update
|
|
|
|
RUN chmod +x /usr/local/bin/docker-compose-update && \
|
|
|
|
sync
|
|
|
|
|
|
|
|
#Try to test
|
|
|
|
RUN docker-compose-update
|
|
|
|
|
|
|
|
#Install packages
|
2024-08-25 21:24:33 +03:00
|
|
|
RUN export DOCKER_COMPOSE_VERSION=`curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r` && \
|
2021-11-20 01:07:46 +03:00
|
|
|
echo "Latest compose is: ${DOCKER_COMPOSE_VERSION}" && \
|
|
|
|
curl -SL https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose && \
|
|
|
|
chmod +x /usr/local/bin/docker-compose && \
|
|
|
|
docker-compose -v
|
|
|
|
|
|
|
|
##################################################################
|
2024-08-25 21:24:33 +03:00
|
|
|
# cleanup
|
2021-11-20 01:07:46 +03:00
|
|
|
##################################################################
|
2024-08-25 21:24:33 +03:00
|
|
|
RUN echo "clean up" && \
|
|
|
|
apt-get clean -y && \
|
|
|
|
apt-get autoclean -y && \
|
2021-11-20 01:07:46 +03:00
|
|
|
rm -rfv /var/lib/apt/lists/* && \
|
2024-08-25 21:24:33 +03:00
|
|
|
rm -rfv /tmp/* && \
|
|
|
|
rm -rfv /var/cache/apt/archives/*.deb
|
|
|
|
|
|
|
|
RUN updatedb
|