16 lines
325 B
Docker
16 lines
325 B
Docker
FROM php:8.3-cli
|
|
|
|
# Copy the application files
|
|
COPY . /app
|
|
WORKDIR /app
|
|
|
|
# Set permissions
|
|
RUN chown -R www-data:www-data /app
|
|
|
|
# Expose port 8080
|
|
EXPOSE 8080
|
|
|
|
# Start the built-in PHP server on port 8080 (listening on all interfaces)
|
|
# We use -t /app to set the document root
|
|
CMD ["php", "-S", "0.0.0.0:8080", "-t", "/app"]
|