File size: 785 Bytes
347402f 9f15759 347402f 9f15759 347402f 9f15759 347402f 9f15759 347402f 9f15759 347402f 54d272c 9f15759 347402f 54d272c 9f15759 347402f 9f15759 347402f 54d272c |
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 35 36 37 38 39 40 41 42 43 |
# 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 entrypoint.sh
# Make entrypoint script executable
RUN chmod +x *
# Expose port for code-server
EXPOSE 8080
# Set the entry point
ENTRYPOINT ["entrypoint.sh"] |