Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files via upload #10

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export OGH='\e[0;30;44m'
export UK='\e[0;38m'
#export BG='\e[0;44m'
export NC='\e[0m'
export ITAL=$(tput sitm)
export BOLD=$(tput bold)
#export ITAL=$(tput sitm)
#export BOLD=$(tput bold)

export FILLBAR='${(l:112::─:)}'
export HLINE=─
Expand Down
50 changes: 50 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Use Alpine Linux as the base image
FROM ubuntu:latest

# Set the working directory to /app
WORKDIR /app

ENV TERM xterm-256color

# Install git and update the package index
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y -qq git \
sudo \
apt-utils \
bash \
dialog

# Clone your GitHub repository to the /app/ directory
RUN git clone https://github.com/Beesoc/easy-linux.git /app/

# Copy your installer script to the container
COPY wordlists/ /wordlists/

# Source the .envrc file to set environment variables
RUN . /app/.envrc

# Create symlinks to redirect /opt/easy-linux/ to /app/
RUN ln -s /app/ /opt/easy-linux \
&& ln -s /backup/ /opt/backup \
&& ln -s /compiled/ /$HOME/compiled \
&& ln -s /wordlists/ /usr/share/wordlists

# Install dependencies and set up the environment (you may need to customize this part)
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -qq \
nano \
xauth \
xterm \
gnome-terminal
# Add any other dependencies your installer script requires here

# Run chmod +x on *.sh files in /app, /app/install, /app/support, and /app/support/misc
RUN find /app -type f -name "*.sh" -exec chmod +x {} \;

# Run the touch and chown commands
RUN touch /app/support/.last_update \
&& chown -vR $USER:0 /app/support/.last_update

# Expose any ports if needed
# EXPOSE 80

# Define the command to run your installer script
CMD ["/opt/easy-linux/install/menu-master.sh"]