You've already forked azure-functions-python-db-access
mirror of
https://github.com/netbirdio/azure-functions-python-db-access.git
synced 2026-05-22 17:09:32 -07:00
29 lines
696 B
Docker
29 lines
696 B
Docker
FROM netbirdio/netbird:latest as netbird-build
|
|
FROM mcr.microsoft.com/azure-functions/python:4-python3.9
|
|
|
|
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
|
|
AzureFunctionsJobHost__Logging__Console__IsEnabled=true
|
|
|
|
COPY --from=netbird-build /go/bin/netbird /bin/netbird
|
|
|
|
RUN chmod +x /bin/netbird
|
|
|
|
COPY command.sh /command.sh
|
|
|
|
RUN chmod +x /command.sh
|
|
|
|
CMD /command.sh
|
|
|
|
ENV NB_USE_NETSTACK_MODE=true \
|
|
NB_SOCKS5_LISTENER_PORT=1080 \
|
|
NB_FOREGROUND_MODE=true \
|
|
NB_LOG_LEVEL=debug
|
|
|
|
# index root directory
|
|
ENV AzureWebJobsFeatureFlags=EnableWorkerIndexing
|
|
|
|
COPY requirements.txt /
|
|
RUN pip install -r /requirements.txt
|
|
|
|
COPY function_app.py /home/site/wwwroot/
|
|
COPY host.json /home/site/wwwroot/ |