mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-03 07:53:39 +00:00
30
Dockerfile
Normal file
30
Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
FROM zoeyvid/nginx-quic:20
|
||||
COPY rootfs /
|
||||
COPY backend /app
|
||||
COPY frontend/dist /app/frontend
|
||||
|
||||
WORKDIR /app
|
||||
RUN apk upgrade --no-cache && \
|
||||
apk add --no-cache ca-certificates wget tzdata \
|
||||
python3 \
|
||||
nodejs-current npm \
|
||||
openssl apache2-utils jq \
|
||||
gcc g++ libffi-dev python3-dev && \
|
||||
|
||||
# Install pip
|
||||
wget https://bootstrap.pypa.io/get-pip.py -O - | python3 && \
|
||||
|
||||
# Change permission
|
||||
chmod +x /usr/local/bin/start && \
|
||||
chmod +x /usr/local/bin/check-health && \
|
||||
|
||||
# Build Backend
|
||||
npm install --force && \
|
||||
pip install --no-cache-dir certbot && \
|
||||
apk del --no-cache gcc g++ libffi-dev python3-dev npm
|
||||
|
||||
ENV NODE_ENV=production \
|
||||
DB_SQLITE_FILE=/data/database.sqlite
|
||||
|
||||
ENTRYPOINT ["start"]
|
||||
HEALTHCHECK CMD check-health
|
Reference in New Issue
Block a user