diff options
| author | Roberto Berto <roberto.berto@under.com.br> | 2024-06-08 17:21:57 -0300 |
|---|---|---|
| committer | Roberto Berto <roberto.berto@under.com.br> | 2024-06-08 17:21:57 -0300 |
| commit | 94bc8a86dcb70a5c0ee29cdab91a9ad0f739be9d (patch) | |
| tree | ca18c6ee97ed788951380022b0ea80d9a1092447 /Dockerfile | |
| parent | bc094b8954b79d35fba6bf97814f4a18ebd7274e (diff) | |
| download | vyos-apt-94bc8a86dcb70a5c0ee29cdab91a9ad0f739be9d.tar.gz vyos-apt-94bc8a86dcb70a5c0ee29cdab91a9ad0f739be9d.zip | |
build .deb packages using docker
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5815a66 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,29 @@ +# Use the official Debian image as a base +FROM debian:12 + +# Install necessary packages +RUN apt-get update && apt-get install -y \ + build-essential \ + devscripts \ + git \ + reprepro \ + awscli \ + && rm -rf /var/lib/apt/lists/* + +# Set the working directory +WORKDIR /workspace + +# Copy the build scripts into the container +COPY scripts/ /workspace/scripts/ + +# Copy the configuration files into the container +COPY conf/ /workspace/conf/ + +# Copy the .env file into the container +COPY .env /workspace/ + +# Make the build scripts executable +RUN chmod +x /workspace/scripts/*.sh + +# Define the entrypoint script +ENTRYPOINT ["/workspace/scripts/build_packages.sh"] |
