Skip to content

Instantly share code, notes, and snippets.

@radityopw
Last active November 17, 2023 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radityopw/1be9002a28640ed6ead240017c41dfbc to your computer and use it in GitHub Desktop.
Save radityopw/1be9002a28640ed6ead240017c41dfbc to your computer and use it in GitHub Desktop.
Dockerfile Alpine-3.18 dan PHP-8.1 min edition
FROM alpine:3.18
LABEL author="Radityo P W (radityo.p.w@gmail.com)"
RUN apk update
RUN apk add apache2 nano
RUN apk add php81 php81-apache2 php81-common php81-curl php81-mysqli php81-sqlite3 php81-ffi
RUN rm -rf /var/cache/apk/*
EXPOSE 80
CMD ["httpd", "-D", "FOREGROUND"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment