ls-code-server/Dockerfile.armhf

39 lines
1005 B
Docker
Raw Normal View History

2021-11-29 19:00:15 +01:00
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-focal
2020-05-18 02:40:11 +02:00
# set version label
ARG BUILD_DATE
ARG VERSION
ARG CODE_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"
# environment settings
ENV HOME="/config"
RUN \
2022-02-21 01:38:02 +01:00
apt-get update && \
apt-get install -y \
libatomic1 && \
2021-05-08 16:50:21 +02:00
echo "**** install code-server ****" && \
if [ -z ${CODE_RELEASE+x} ]; then \
2022-02-20 21:51:53 +01:00
CODE_RELEASE=$(curl -sX GET https://api.github.com/repos/coder/code-server/releases/latest \
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^v||'); \
2021-05-08 16:50:21 +02:00
fi && \
2022-02-20 21:51:53 +01:00
curl -o \
/tmp/code-server.deb -L \
"https://github.com/coder/code-server/releases/download/v${CODE_RELEASE}/code-server_${CODE_RELEASE}_armhf.deb" && \
dpkg -i /tmp/code-server.deb && \
2021-05-08 16:50:21 +02:00
echo "**** clean up ****" && \
2022-02-21 01:38:02 +01:00
apt-get clean && \
2021-05-08 16:50:21 +02:00
rm -rf \
2021-11-29 19:00:15 +01:00
/config/* \
2021-05-08 16:50:21 +02:00
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
2020-05-18 02:40:11 +02:00
# add local files
COPY /root /
# ports and volumes
EXPOSE 8443