# Use Ubuntu as base image | |
FROM ubuntu:latest | |
# Install git and curl | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
curl \ | |
dumb-init \ | |
git \ | |
git-lfs \ | |
htop \ | |
locales \ | |
lsb-release \ | |
man-db \ | |
nano \ | |
openssh-client \ | |
procps \ | |
sudo \ | |
vim-tiny \ | |
wget \ | |
zsh \ | |
&& git lfs install \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Clone the repository | |
RUN git clone https://github.com/coder/code-server.git /code-server | |
# Change directory to the cloned repository | |
WORKDIR /code-server | |
# Run CI script from the ci directory | |
RUN cd ci | |
# Copy entry point script | |
COPY entrypoint.sh home/entrypoint.sh | |
# Make entrypoint script executable | |
RUN chmod +x * | |
ENTRYPOINT ["/code-server/ci/release-image/entrypoint.sh"] |