whocarstest commited on
Commit
7fbff48
·
verified ·
1 Parent(s): de9d545

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -28
Dockerfile CHANGED
@@ -1,34 +1,17 @@
 
1
  FROM ubuntu:23.10
2
 
3
- # hadolint ignore=DL3008
4
  RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get install -y --no-install-recommends \
5
- # support env timezones
6
- tzdata \
7
- # development tools
8
- git build-essential wget curl ca-certificates \
9
- # clean up
10
- && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
11
 
12
- # install code-server
13
- RUN curl -fsSL https://code-server.dev/install.sh | sh
14
 
15
- # create a user to run code-server
16
- RUN useradd -m coder
17
 
18
- # set environment variables
19
- ENV PASSWORD=anon@#@#
20
- ENV HOME=/home/coder
21
-
22
- # create necessary directories and set permissions
23
- RUN mkdir -p /home/coder/.config/code-server \
24
- && chown -R coder:coder /home/coder
25
-
26
- # expose port
27
- EXPOSE 7860
28
-
29
- # switch to the coder user
30
- USER coder
31
- WORKDIR /home/coder
32
-
33
- # entrypoint to start code-server directly
34
- ENTRYPOINT ["code-server", "--bind-addr", "0.0.0.0:7860"]
 
1
+ # Base image
2
  FROM ubuntu:23.10
3
 
4
+ # Install necessary packages
5
  RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get install -y --no-install-recommends \
6
+ tzdata \
7
+ transmission-cli \
8
+ && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
 
 
 
9
 
10
+ # Set a directory for downloads
11
+ WORKDIR /downloads
12
 
13
+ # Download the torrent during build
14
+ RUN transmission-cli "magnet:?xt=urn:btih:3DA32AA0B57EA9550CB4CC0E3F5FE0B930F66AA1&dn=[1337x.HashHackers.Com]500+Days+Of+Summer+2009+720p+BrRip+x264+YIFY&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.pomf.se%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A80&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=http%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Fopentracker.i2p.rocks%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969%2Fannounce&tr=udp%3A%2F%2Fcoppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.zer0day.to%3A1337%2Fannounce" -w /downloads
15
 
16
+ # Default command to verify the download
17
+ CMD ["ls", "-lh", "/downloads"]