Skip to content

Commit 244644b

Browse files
committed
Update docker release container to use .deb
1 parent 8e5b819 commit 244644b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Use [sshcode](https://github.com/codercom/sshcode) for a simple setup.
4242
1. [Download a release](https://github.com/cdr/code-server/releases). (Linux and
4343
OS X supported. Windows support planned.)
4444
2. Unpack the downloaded release then run the included `bin/code-server` script.
45+
- You can add the `bin` directory to your `$PATH` to easily access code-server without
46+
specifying the full path every time
4547
3. In your browser navigate to `localhost:8080`.
4648

4749
## FAQ

ci/release-container/Dockerfile

+3-5
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@ RUN curl -L "https://github.com/boxboat/fixuid/releases/download/v0.4.1/fixuid-0
3535
mkdir -p /etc/fixuid && \
3636
printf "user: coder\ngroup: coder\n" > /etc/fixuid/config.yml
3737

38-
COPY release-static/code-server*.tar.gz /tmp/
39-
RUN cd /tmp && tar -xzf code-server*.tar.gz && rm code-server*.tar.gz && \
40-
mv code-server* /usr/local/lib/code-server && \
41-
ln -s /usr/local/lib/code-server/code-server /usr/local/bin/code-server
38+
COPY release-static/code-server*.deb /tmp/
39+
RUN dpkg -i /tmp/*.deb
4240

4341
EXPOSE 8080
4442
USER coder
4543
WORKDIR /home/coder
46-
ENTRYPOINT ["dumb-init", "fixuid", "-q", "/usr/local/bin/code-server", "--bind-addr", "0.0.0.0:8080", "."]
44+
ENTRYPOINT ["dumb-init", "fixuid", "-q", "/usr/bin/code-server", "--bind-addr", "0.0.0.0:8080", "."]

0 commit comments

Comments
 (0)