File size: 529 Bytes
d36625b
 
 
 
 
 
 
 
 
 
 
 
 
03b48bb
 
 
d36625b
 
 
 
 
03b48bb
d36625b
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

# Install Nginx, PHP 8.1, and MariaDB
RUN apt-get update && apt-get install -y \
    nginx \
    php8.1-fpm \
    php8.1-mysql \
    php8.1-cli \
    mariadb-server \
    && rm -rf /var/lib/apt/lists/*

# Set working directory to where Hugging Face puts repository files
WORKDIR /app

# Copy configuration and startup scripts
COPY nginx.conf /etc/nginx/sites-available/default
COPY start.sh /start.sh
RUN chmod +x /start.sh

# Expose port 7860
EXPOSE 7860

CMD ["/start.sh"]