| 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 |
| 4 | RUN mkdir /run/postgresql |
| 5 | RUN chown postgres:postgres /run/postgresql |
| 6 | ENV IS_DOCKER=1 |
| 7 | ENV PYTHONDONTWRITEBYTECODE=1 |
| 8 | ENV PYTHONUNBUFFERED=1 |
| 9 | |
| 10 | COPY docker-entrypoint.sh / |
| 11 | COPY sample /sample |
| 12 | RUN chmod 777 /docker-entrypoint.sh |
| 13 | ENTRYPOINT [ "/docker-entrypoint.sh" ] |
| 14 | |
| 15 | EXPOSE 80 |
| 16 | EXPOSE 5432 |
| 17 | EXPOSE 6379 |