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

Commit

Permalink
Fix: Use the right nginx configuration instead php/apache one
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroamador committed Oct 1, 2019
1 parent c56cd9e commit ef0108d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
ports:
- 8090:80
volumes:
- ./statics:/var/www/html:ro
- ./statics:/usr/share/nginx/html:ro
restart: unless-stopped

networks:
Expand Down
8 changes: 2 additions & 6 deletions statics/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
FROM php:7.3.9-apache-buster
FROM nginx:1.17.3-alpine

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

# Copy backup/cleanup scripts
COPY backup /usr/local/bin/backup
Expand Down

0 comments on commit ef0108d

Please sign in to comment.