Files
simple-laravel/build/Dockerfile
vista 1c0524762a
Some checks failed
ci/woodpecker/push/build Pipeline failed
set noninteractive
2023-03-16 08:43:09 +01:00

21 lines
448 B
Docker

ARG USERNAME=laravel
ARG USER_UID=1000
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
COPY start-container /usr/local/bin/start-container
RUN apt-get -y update \
&& apt-get install -y php php-xml php-curl php-xml php-mbstring composer npm \
&& useradd --home-dir=/var/www/html --uid=$USER_UID $USERNAME \
&& chmod +x /usr/local/bin/start-container
EXPOSE 8080
WORKDIR /var/www/html
USER $USERNAME
ENTRYPOINT ["start-container"]