-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (25 loc) · 935 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Use the official image as a parent image.
FROM ubuntu:20.04
# mkdir dir
RUN mkdir /home/aouos
# workdir
WORKDIR /home/aouos
# Add author information
MAINTAINER aouos
ARG name=code-server
COPY sources.list /etc/apt/
ADD config.yaml /root/.config/code-server/
# The time zone
ENV version=3.10.2
# use noninteractive
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y wget \
&& wget https://github.com/cdr/code-server/releases/download/v$version/code-server-$version-linux-amd64.tar.gz \
&& tar -xvzf code-server-$version-linux-amd64.tar.gz \
&& rm code-server-$version-linux-amd64.tar.gz \
&& mkdir /usr/lib/code-server-$version-linux-amd64 \
&& cp -r /home/aouos/code-server-$version-linux-amd64/* /usr/lib/code-server-$version-linux-amd64/ \
&& ln -s /usr/lib/code-server-$version-linux-amd64/code-server /usr/bin/code-server \
&& rm -r code-server-$version-linux-amd64
EXPOSE 8080