summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorRoberto Berto <roberto.berto@under.com.br>2024-06-08 17:21:57 -0300
committerRoberto Berto <roberto.berto@under.com.br>2024-06-08 17:21:57 -0300
commit94bc8a86dcb70a5c0ee29cdab91a9ad0f739be9d (patch)
treeca18c6ee97ed788951380022b0ea80d9a1092447 /Dockerfile
parentbc094b8954b79d35fba6bf97814f4a18ebd7274e (diff)
downloadvyos-apt-94bc8a86dcb70a5c0ee29cdab91a9ad0f739be9d.tar.gz
vyos-apt-94bc8a86dcb70a5c0ee29cdab91a9ad0f739be9d.zip
build .deb packages using docker
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile29
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"]