Time Zones Are Hard - https://tz.rita.moe

Lighter docker image

+2 -1
.dockerignore
···
**/.forgejo
.dockerignore
.gitignore
+
Dockerfile
README.md
-
routing.php
+
renovate.json
-4
.htaccess
···
-
RewriteEngine on
-
RewriteCond %{REQUEST_FILENAME} !-f
-
RewriteCond %{REQUEST_FILENAME} !-d
-
RewriteRule ^.*$ /index.php [L,QSA]
+7 -3
Dockerfile
···
-
FROM docker.io/library/php:8.2-apache
-
RUN a2enmod rewrite
-
COPY . /var/www/html
+
FROM docker.io/library/alpine:3.18
+
WORKDIR /app
+
RUN apk add --no-cache php81
+
COPY . /app
+
+
EXPOSE 8080
+
CMD [ "php", "-S", "0.0.0.0:8080", "routing.php" ]
+11
README.md
···
# Run dev PHP server
php -S 127.0.0.1:8080 routing.php
```
+
+
## Docker
+
+
```bash
+
# Build it locally if you want, or skip this step to pull from my packages
+
docker build . -t git.rita.moe/kody/tz:latest
+
+
# Change the first "8080" with the port you want to have on your host
+
# Or omit "-p 8080:8080" if you're using a reverse-proxy within the docker network
+
docker run -d -p 8080:8080 --name tz git.rita.moe/kody/tz:latest
+
```