mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-27 23:25:43 +03:00
69 lines
2.7 KiB
Docker
69 lines
2.7 KiB
Docker
|
################################################################################
|
||
|
# 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
|
||
|
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \
|
||
|
echo 'deb https://download.docker.com/linux/ubuntu focal test' > /etc/apt/sources.list.d/docker.list && \
|
||
|
apt-cache policy docker-ce && \
|
||
|
apt-get update && \
|
||
|
apt-get install -y --no-install-recommends --allow-unauthenticated \
|
||
|
docker-ce \
|
||
|
docker-ce-cli \
|
||
|
containerd.io systemd && \
|
||
|
systemctl disable docker
|
||
|
|
||
|
# 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
|
||
|
RUN export DOCKER_COMPOSE_VERSION=`curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r` && \
|
||
|
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
|
||
|
|
||
|
##################################################################
|
||
|
# cleaninig up
|
||
|
##################################################################
|
||
|
RUN apt purge policykit-1 -y && \
|
||
|
apt clean -y && \
|
||
|
apt autoclean -y && \
|
||
|
rm -rfv /var/lib/apt/lists/* && \
|
||
|
rm -rfv /tmp/mc.patch && \
|
||
|
rm -rfv /var/cache/apt/archives/*.deb && \
|
||
|
rm -rfv /tmp/7z && \
|
||
|
rm -rfv /tmp/deb/* && \
|
||
|
rm -rfv /tmp/composer-setup.php && \
|
||
|
rm -rfv /tmp/amxx_base_latest.tar.gz && \
|
||
|
rm -rfv /tmp/atlassian-plugin-sdk.deb && \
|
||
|
rm -rfv /tmp/addons
|