Skip to content

Commit

Permalink
fix: base dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mguptahub committed May 23, 2024
1 parent a7d9297 commit 2ac9746
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 128 deletions.
124 changes: 0 additions & 124 deletions Dockerfile

This file was deleted.

15 changes: 13 additions & 2 deletions aio/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ RUN apt-get install -y postgresql postgresql-contrib
# Install Redis
RUN apt-get install -y redis-server

#Install Node 18
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs

# Install Python 3.11
RUN add-apt-repository ppa:deadsnakes/ppa -y && \
apt-get update && \
apt-get install -y python3.11 python3.11-dev python3.11-distutils && \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 && \
update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1 && \
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1

# Install MinIO
ARG TARGETARCH
RUN if [ "$TARGETARCH" = "amd64" ]; then \
Expand All @@ -54,7 +66,6 @@ COPY ./supervisor.base /app/supervisor.conf
# Expose the necessary ports
EXPOSE 5432 6379 9001 80 443

RUN mkdir -p /var/log/supervisord/ && \
touch /var/log/supervisord/supervisord.log
RUN mkdir -p /var/log/supervisord/

CMD ["supervisord","-c","/app/supervisor.conf"]
2 changes: 1 addition & 1 deletion aio/supervisor.base
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[supervisord]
nodaemon=true
logfile=/var/log/supervisord/supervisord.log
logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid

[program:postgresql]
Expand Down
2 changes: 1 addition & 1 deletion aio/supervisor.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[supervisord]
nodaemon=true
logfile=/var/log/supervisord/supervisord.log
logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid

[program:postgresql]
Expand Down

0 comments on commit 2ac9746

Please sign in to comment.