All but deletion implemented

This commit is contained in:
2024-09-27 16:34:22 +02:00
parent 06ebef2a44
commit 147c15afe2
6 changed files with 97 additions and 3 deletions
+21
View File
@@ -0,0 +1,21 @@
FROM php:8.3-alpine
ENV TZ=Europe/Stockholm
ARG USERNAME=app
RUN apk add --update tini
ENTRYPOINT [ "/sbin/tini", "--" ]
RUN addgroup -S $USERNAME && adduser -S $USERNAME -G $USERNAME
RUN docker-php-ext-install pcntl
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN printf "[PHP]\ndate.timezone = \"%s\"\n" $TZ > /usr/local/etc/php/conf.d/tzone.ini
WORKDIR /application
COPY . /application
RUN chown app:app /application/data
USER $USERNAME
CMD [ "php", "/application/bin/paramdb" ]