From 14868fa1ea208a244a1a90e679c2627a44ffd991 Mon Sep 17 00:00:00 2001
From: Sofiane Lasri-Trienpont <alasri250@gmail.com>
Date: Mon, 24 Jun 2024 11:53:15 +0200
Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20image=20rabbit=20mq=203.13.3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Dockerfile    | 13 +++++++++++++
 entrypoint.sh |  8 ++++++++
 2 files changed, 21 insertions(+)
 create mode 100644 Dockerfile
 create mode 100644 entrypoint.sh

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..68346d8
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,13 @@
+FROM rabbitmq:3.13.3-alpine
+LABEL author="Sofiane Lasri"
+
+RUN adduser --disabled-password --home /home/container container
+
+USER container
+ENV  USER=container HOME=/home/container
+
+WORKDIR /home/container
+
+COPY ./entrypoint.sh /entrypoint.sh
+
+CMD ["/bin/bash", "/entrypoint.sh"]
\ No newline at end of file
diff --git a/entrypoint.sh b/entrypoint.sh
new file mode 100644
index 0000000..c9f8d46
--- /dev/null
+++ b/entrypoint.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+cd /home/container
+
+MODIFIED_STARTUP=$(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
+echo ":/home/container$ ${MODIFIED_STARTUP}"
+
+# Run the Server
+eval ${MODIFIED_STARTUP}
\ No newline at end of file
-- 
GitLab