gordonchan commited on
Commit
d5a3a6c
·
verified ·
1 Parent(s): 9cbb36f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -80
Dockerfile CHANGED
@@ -1,82 +1,4 @@
1
  # Start from the chbboee-server Debian base image
2
- FROM codercom/code-server:4.9.0
3
- ARG DEBIAN_FRONTEND=noninteractive
4
- USER coder
5
- ENV HTTPS_ENABLED=false
6
- # Apply VS Code settings
7
- COPY deploy-container/settings.json .local/share/code-server/User/settings.json
8
-
9
- # Use bash shell
10
- ENV SHELL=/bin/bash
11
-
12
- # Install unzip + rclone (support for remote filesystem)
13
- RUN sudo apt-get update && sudo apt-get install unzip -y
14
- RUN curl https://rclone.org/install.sh | sudo bash
15
-
16
- # Copy rclone tasks to /tmp, to potentially be used
17
- COPY deploy-container/rclone-tasks.json /tmp/rclone-tasks.json
18
-
19
- RUN sudo adduser coder sudo
20
- # Fix permissions for code-server
21
- RUN sudo chown -R coder:coder /home/coder/.local
22
- RUN sudo apt install wget -y
23
- # You can add custom software and dependencies for your environment below
24
- # -----------
25
-
26
- # Install a VS Code extension:
27
- # Note: we use a different marketplace than VS Code. See https://github.com/cdr/code-server/blob/main/docs/FAQ.md#differences-compared-to-vs-code
28
- RUN code-server --install-extension esbenp.prettier-vscode
29
- RUN code-server --install-extension llvm-vs-code-extensions.vscode-clangd
30
- RUN code-server --install-extension ms-python.python
31
- RUN code-server --install-extension amazonwebservices.aws-toolkit-vscode
32
- # Install apt packages:
33
- #RUN sudo apt-get install -y ubuntu-make
34
-
35
- # Copy files:
36
- # COPY deploy-container/myTool /home/coder/myTool
37
- RUN sudo apt-get -y update \
38
- && sudo apt-get install -y software-properties-common \
39
- && sudo apt-get -y update \
40
- && sudo apt update \
41
- && sudo apt install chromium -y \
42
- && sudo apt install tor whois proxychains4 -y \
43
- && sudo apt-get install -y python gcc pip snapd hashcat docker.io xz-utils file curl file git unzip xz-utils zip libglu1-mesa clang cmake ninja-build pkg-config libgtk-3-dev \
44
- && sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
45
- && sudo apt-get install ./google-chrome-stable_current_amd64.deb -y \
46
- && sudo apt install -y gconf-service libgbm-dev libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget snapd
47
- RUN wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.10.6-stable.tar.xz
48
- RUN tar xf flutter_linux_3.10.6-stable.tar.xz
49
- RUN echo 'export PATH="$PATH:~/flutter/bin"' >> /home/coder/.bashrc
50
- RUN sudo apt-get install mariadb-client -y
51
-
52
-
53
- # Download the Android SDK tools
54
- RUN curl -o sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
55
- RUN sudo unzip sdk.zip -d /opt/android-sdk
56
-
57
- # Set the environment variable for the Android SDK
58
- ENV ANDROID_HOME=/opt/android-sdk
59
- ENV PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
60
- RUN sudo wget https://download.oracle.com/java/17/latest/jdk-17_linux-x64_bin.deb
61
- RUN sudo dpkg -i jdk-17_linux-x64_bin.deb
62
- RUN sudo pip3 install -U quark-engine
63
- #RUN sudo apt install openjdk-19-jre
64
- RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
65
- RUN git config --global user.email "pranavdileep10@gmail.com"
66
- RUN git config --global user.name "PRANAV K DILEEP"
67
- COPY requirements.txt .
68
-
69
- RUN sudo pip install -r requirements.txt
70
- RUN sudo apt-get install ffmpeg -y
71
- RUN sudo apt install php libapache2-mod-php php-cli php-cgi php-mysql php-pgsql php-curl -y
72
- # -----------
73
- COPY ./keyboard /etc/default/keyboard
74
-
75
  # Port
76
- ENV PORT=7860
77
- # Use our custom entrypoint script first
78
- COPY deploy-container/entrypoint.sh /usr/bin/deploy-container-entrypoint.sh
79
- RUN sudo chmod +x /usr/bin/deploy-container-entrypoint.sh
80
- RUN curl -fsSL https://coder.com/install.sh | sh -s
81
-
82
- ENTRYPOINT ["/usr/bin/deploy-container-entrypoint.sh"]
 
1
  # Start from the chbboee-server Debian base image
2
+ FROM ghcr.io/gordonchanfz/webide:latest
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  # Port
4
+ ENV PORT=7860