helios-server icon indicating copy to clipboard operation
helios-server copied to clipboard

How can I run this voting system on k8s by using Dockerfile

Open wanghao75 opened this issue 2 years ago • 1 comments

I have followed the INSTALL.md steps, but it seems like this voting system can not work. Also, I can not find the Docker image or a Dockerfile for this project. Need Help Please.

wanghao75 avatar Aug 31 '22 07:08 wanghao75

Hi, here is a very simple Dockerfile that will make the application work for development :

FROM python:3.6-alpine
RUN apk add libpq-dev gcc musl-dev openldap-dev && mkdir /app
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt
COPY . .
EXPOSE 80
CMD python3 manage.py runserver 0.0.0.0:80

RomainL972 avatar Jul 18 '23 17:07 RomainL972