| 1 | FROM alpine:3.17 |
| 2 | RUN apk update && apk upgrade --available |
| 3 | RUN apk add --update python3 nodejs npm postgresql postgresql-jit nginx redis py3-pip |
| 4 | RUN python -m pip install --upgrade pip |
| 5 | RUN mkdir /run/postgresql |
| 6 | RUN chown postgres:postgres /run/postgresql |
| 7 | ENV IS_DOCKER=1 |
| 8 | ENV PYTHONDONTWRITEBYTECODE=1 |
| 9 | ENV PYTHONUNBUFFERED=1 |
| 10 | |
| 11 | COPY docker-entrypoint.sh / |
| 12 | COPY sample /sample |
| 13 | RUN chmod 777 /docker-entrypoint.sh |
| 14 | RUN pip install -r /sample/backend/requirements.txt |
| 15 | ENTRYPOINT [ "/docker-entrypoint.sh" ] |
| 16 | |
| 17 | EXPOSE 80 |
| 18 | EXPOSE 5432 |
| 19 | EXPOSE 6379 |