25 lines
513 B
Docker
25 lines
513 B
Docker
FROM python:3.13-alpine
|
|
|
|
RUN apk add --no-cache s6 bash wget unzip curl sqlite
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN python -m pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY ./s6 /etc/s6
|
|
|
|
WORKDIR /app
|
|
|
|
COPY scripts scripts
|
|
COPY src src
|
|
COPY sqlpage sqlpage
|
|
COPY webroot webroot
|
|
|
|
RUN wget -q https://github.com/sqlpage/SQLPage/releases/download/v0.35.2/sqlpage-aws-lambda.zip \
|
|
&& unzip sqlpage-aws-lambda.zip bootstrap \
|
|
&& rm sqlpage-aws-lambda.zip
|
|
|
|
ENTRYPOINT [ "/usr/bin/s6-svscan", "/etc/s6" ]
|
|
|
|
EXPOSE 8080
|