-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
59 lines (54 loc) · 1.29 KB
/
Dockerfile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Start with the official NVIDIA CUDA base image for Ubuntu
FROM nvidia/cuda:12.5.0-base-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive
# Install necessary dependencies
RUN apt-get update && \
apt-get install -y \
software-properties-common && \
#add-apt-repository ppa:nginx/stable && \
add-apt-repository ppa:ondrej/php && \
apt-get update && apt-get -y upgrade && \
apt-get install -y \
openssl \
apache2-utils \
git \
logrotate \
memcached \
nginx \
nginx-extras \
php8.3 \
php8.3-fpm \
php8.3 \
php8.3-ctype \
php8.3-curl \
php8.3-fileinfo \
php8.3-fpm \
php8.3-iconv \
php8.3-mbstring \
php8.3-simplexml \
php8.3-xml \
php8.3-xmlwriter \
php8.3-zip \
php8.3-bcmath \
php8.3-bz2 \
php8.3-dom \
php8.3-exif \
php8.3-ftp \
php8.3-gd \
php8.3-intl \
php8.3-xmlreader \
ffmpeg \
nano \
wget \
curl \
iputils-ping
# Create a directory for the NGINX logs and configuration
RUN mkdir -p /var/log/nginx && \
mkdir -p /etc/nginx
# Copy default NGINX configuration
# COPY nginx.conf /etc/nginx/nginx.conf
# Expose the default NGINX port
EXPOSE 80 433
#VOLUME /etc/nginx
# Start NGINX
CMD ["bash", "-c", "service php8.3-fpm start && nginx -g 'daemon off;'"]