Package or bust!
This commit is contained in:
52
CloudronPackages/Workspace/Dockerfile.helper
Normal file
52
CloudronPackages/Workspace/Dockerfile.helper
Normal file
@@ -0,0 +1,52 @@
|
||||
# Cloudron Packaging Helper Container
|
||||
# Based on Ubuntu 22.04 as requested
|
||||
FROM ubuntu:22.04
|
||||
|
||||
# Set environment variables
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV TZ=UTC
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl \
|
||||
wget \
|
||||
git \
|
||||
docker.io \
|
||||
docker-compose \
|
||||
jq \
|
||||
vim \
|
||||
nano \
|
||||
build-essential \
|
||||
python3 \
|
||||
python3-pip \
|
||||
nodejs \
|
||||
npm \
|
||||
golang-go \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install yq separately
|
||||
RUN wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 && \
|
||||
chmod +x /usr/local/bin/yq
|
||||
|
||||
# Install Cloudron CLI tools
|
||||
# Note: These may need to be updated based on latest Cloudron documentation
|
||||
RUN curl -fsSL https://cloudron.io/cloudron-cli/install.sh | bash
|
||||
|
||||
# Create workspace directory
|
||||
WORKDIR /workspace
|
||||
|
||||
# Copy the entire CloudronPackages directory
|
||||
COPY . /workspace/
|
||||
|
||||
# Set up git configuration (will be overridden by user's config)
|
||||
RUN git config --global user.name "Cloudron Packager" && \
|
||||
git config --global user.email "packager@cloudron.local"
|
||||
|
||||
# Create directories for package development
|
||||
RUN mkdir -p /workspace/packages /workspace/temp
|
||||
|
||||
# Set working directory to the main project
|
||||
WORKDIR /workspace
|
||||
|
||||
# Default command
|
||||
CMD ["/bin/bash"]
|
Reference in New Issue
Block a user