Create Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:22.04
|
| 2 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
+
|
| 4 |
+
# Redpanda
|
| 5 |
+
RUN curl -1sLf 'https://dl.redpanda.com/nzc4ZYQK3WRGd9sy/redpanda/cfg/setup/bash.deb.sh' \
|
| 6 |
+
| bash && apt-get install -y redpanda redpanda-console
|
| 7 |
+
|
| 8 |
+
# nginx + supervisor
|
| 9 |
+
RUN apt-get install -y nginx supervisor gettext-base \
|
| 10 |
+
&& rm /etc/nginx/sites-enabled/default
|
| 11 |
+
|
| 12 |
+
COPY nginx.conf /etc/nginx/nginx.conf
|
| 13 |
+
COPY redpanda.yaml /etc/redpanda/redpanda.yaml
|
| 14 |
+
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
| 15 |
+
|
| 16 |
+
RUN mkdir -p /var/lib/redpanda/data /var/log/supervisor \
|
| 17 |
+
&& chown -R redpanda:redpanda /var/lib/redpanda
|
| 18 |
+
|
| 19 |
+
EXPOSE 7860
|
| 20 |
+
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|