Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit ef0108d

Browse files
committed
Fix: Use the right nginx configuration instead php/apache one
1 parent c56cd9e commit ef0108d

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

docker-compose.yml.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
ports:
77
- 8090:80
88
volumes:
9-
- ./statics:/var/www/html:ro
9+
- ./statics:/usr/share/nginx/html:ro
1010
restart: unless-stopped
1111

1212
networks:

statics/Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
FROM php:7.3.9-apache-buster
1+
FROM nginx:1.17.3-alpine
22

33
# Install packages
4-
RUN apt-get update && \
5-
apt-get install -y rsync && \
6-
apt-get -y autoclean && apt-get -y autoremove && \
7-
apt-get -y purge $(dpkg --get-selections | grep deinstall | sed s/deinstall//g) && \
8-
rm -rf /var/lib/apt/lists/*
4+
RUN apk add --no-cache rsync
95

106
# Copy backup/cleanup scripts
117
COPY backup /usr/local/bin/backup

0 commit comments

Comments
 (0)