dynamic node remote container
Build and Push Docker Images / build-and-push (push) Failing after 2m33s
Build and Push Docker Images / build-and-push (push) Failing after 2m33s
This commit is contained in:
@@ -7,12 +7,22 @@ WORKDIR /workspace
|
||||
# Install PM2 globally
|
||||
RUN npm install -g pm2
|
||||
|
||||
# Install git, openssh-client, and openssh-server
|
||||
RUN apt-get update && apt-get install -y git openssh-client software-properties-common sudo
|
||||
# Install git, openssh-client, openssh-server, and other necessary packages
|
||||
RUN apt-get update && apt-get install -y git openssh-client openssh-server software-properties-common sudo
|
||||
|
||||
RUN git clone https://gitea.bramkelchtermans.be/Bram/linux-presets.git && cd linux-presets && chmod +x setup.sh && ./setup.sh --terminal-icon
|
||||
RUN rm -rf linux-presets
|
||||
# Install additional package managers
|
||||
RUN npm install -g yarn pnpm
|
||||
RUN curl -fsSL https://bun.sh/install | bash
|
||||
|
||||
# Clone and setup linux-presets
|
||||
RUN git clone https://gitea.bramkelchtermans.be/Bram/linux-presets.git && \
|
||||
cd linux-presets && \
|
||||
chmod +x setup.sh && \
|
||||
./setup.sh --terminal-icon && \
|
||||
cd .. && \
|
||||
rm -rf linux-presets
|
||||
|
||||
# Add root to sudo group
|
||||
RUN usermod -aG sudo root
|
||||
|
||||
# Create a directory for the SSH keys
|
||||
@@ -23,7 +33,7 @@ COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 3000
|
||||
EXPOSE 3000 22
|
||||
|
||||
# Set the entrypoint
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user