Migrate to Alpine #5
12
Dockerfile
12
Dockerfile
@ -1,12 +1,10 @@
|
||||
FROM ubuntu:23.04
|
||||
FROM alpine:3.18.2
|
||||
|
||||
# Install dependencies
|
||||
RUN apt update
|
||||
RUN DEBIAN_FRONTEND=noninteractive \
|
||||
apt install nginx php8.1 php8.1-fpm php8.1-gd php8.1-imagick -y
|
||||
|
||||
# Clean up
|
||||
RUN apt clean
|
||||
RUN apk update && \
|
||||
apk upgrade && \
|
||||
apk add --no-cache nginx php8.1 php8.1-fpm php8.1-gd php8.1-imagick && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
# Set up nginx
|
||||
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
|
||||
|
Loading…
Reference in New Issue
Block a user