19 lines
386 B
Docker
19 lines
386 B
Docker
FROM ubuntu:22.04
|
|
|
|
# Install dependencies
|
|
RUN apt update
|
|
RUN DEBIAN_FRONTEND=noninteractive \
|
|
apt install nginx php8.1 php8.1-fpm php8.1-gd -y
|
|
|
|
# Set up nginx
|
|
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
|
|
|
|
# Setup scripts
|
|
COPY ./upload.php /tmp/upload.php
|
|
COPY ./docker/start.sh /start.sh
|
|
|
|
# Start php dependencies
|
|
RUN service php8.1-fpm start
|
|
|
|
# Start server
|
|
CMD ["bash", "/start.sh"] |