File size: 592 Bytes
d25b1ce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive
ENV HOSTNAME=Lightingplays

# ---- Install base packages ----
RUN apt-get update && apt-get install -y \
    ca-certificates \
    curl \
    wget \
    git \
    sudo \
    htop \
    neovim \
    lsof \
    && rm -rf /var/lib/apt/lists/*

# ---- Install code-server ----
RUN curl -fsSL https://code-server.dev/install.sh | sh

# ---- Create workspace ----
WORKDIR /workspace

# ---- Expose port for HuggingFace ----
EXPOSE 7860

# ---- Start code-server ----
CMD ["code-server","--bind-addr","0.0.0.0:7860","--auth","none","/workspace"]