Sign inSign up

credyin/backend

By credyin

•Updated over 5 years ago

Base image for the backend service of credy-backend Django application

Image
0

2.1K

credyin/backend repository overview

Base image for the backend service of the credy-backend application.

The source code and the necessary files can be found at https://github.com/credyin/asgard⁠

FROM python:3.7-buster

# Copy the script to install nginx
COPY deployment/* /

# Install nginx
RUN bash /install-nginx.sh
# Remove default configuration from Nginx
RUN rm /etc/nginx/conf.d/default.conf
# Update the config with a new one
COPY deployment/config/backend/nginx.conf /etc/nginx/conf.d/

EXPOSE 80

# Install uWSGI 
RUN pip install uwsgi
# Copy the base uWSGI ini file to enable default dynamic uwsgi process number
COPY deployment/config/backend/uwsgi.ini /etc/uwsgi/

# Install Supervisord
RUN apt-get update && apt-get install -y supervisor \
    && rm -rf /var/lib/apt/lists/*
# Custom Supervisord config
COPY deployment/config/backend/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

# Copy start.sh script that will check for a /app/prestart.sh script
# and run it before starting the app
COPY deployment/config/backend/start.sh /start.sh
RUN chmod +x /start.sh

RUN bash /install-essentials.sh

CMD ["/bin/bash"]

Tag summary

Content type

Image

Digest

Size

565.3 MB

Last updated

over 5 years ago

docker pull credyin/backend