Run project with docker compose
[asis23-votoe-client.git] / Dockerfile
blob7077e483ae8d1f3697c1514cbc6ea09558781c9a
1 FROM php:8.2.10-cli-alpine3.17
3 # Arguments
5 ARG ARG_LISTEN_HOST="0.0.0.0"
6 ARG ARG_LISTEN_PORT="80"
8 # Environment variables
10 ENV LISTEN_HOST=$ARG_LISTEN_HOST
11 ENV LISTEN_PORT=$ARG_LISTEN_PORT
13 # Copy code into image
14 COPY . "/opt/"
16 # Change working directory
17 WORKDIR "/opt"
19 # Expose port
20 EXPOSE $LISTEN_PORT
22 # Run REST API server
23 CMD /usr/local/bin/php -S "${LISTEN_HOST}:${LISTEN_PORT}"