Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions docker/Dockerfile-Windows
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
FROM alpine:3.18

RUN apk add --no-cache bash socat wget curl nginx file ffmpeg unzip zlib redis \
php82-fileinfo \
php82-session \
php \
php-curl \
php-openssl \
php-mbstring \
php-json \
php-gd \
php-dom \
php-fpm \
php82 \
php82-pdo \
php82-exif \
php82-curl \
php82-gd \
php82-json \
php82-phar \
php82-fpm \
php82-openssl \
php82-ctype \
php82-opcache \
php82-mbstring \
php82-sodium \
php82-xml \
php82-ftp \
php82-simplexml \
php82-session \
php82-fileinfo \
php82-pcntl \
php82-pecl-redis

RUN ln -s /usr/bin/php82 /usr/bin/php

RUN curl -sS https://getcomposer.org/installer | /usr/bin/php -- --install-dir=/usr/bin --filename=composer
RUN mkdir -p /var/www
WORKDIR /var/www

# Copy application files
COPY . /var/www/

# Copy and set up start script
RUN mkdir -p /etc
COPY docker/rootfs/start.sh /etc/start.sh
# Convert Windows line endings to Unix line endings
RUN sed -i 's/\r$//' /etc/start.sh
RUN chmod +x /etc/start.sh
RUN ls -la /etc/start.sh # Debug line to verify file exists and permissions

# Composer install
WORKDIR /var/www/lib
RUN composer install --no-dev --no-interaction --no-progress --optimize-autoloader

# nginx stuff
WORKDIR /var/www
COPY docker/rootfs/nginx.conf /etc/nginx/http.d/default.conf
RUN mkdir -p /run/nginx
RUN mkdir -p /var/log/nginx
RUN sed -i 's/nobody/nginx/g' /etc/php82/php-fpm.d/www.conf

# Since requests can trigger conversion, let's give the server enough time to respond
RUN sed -i "/max_execution_time/c\max_execution_time=3600" /etc/php82/php.ini
RUN sed -i "/max_input_time/c\max_input_time=3600" /etc/php82/php.ini

WORKDIR /var/www/

# Volumes to mount
#VOLUME /var/lib/influxdb
VOLUME /var/www/data

EXPOSE 80

# Use shell form to ensure the script is executed with bash
ENTRYPOINT ["/bin/bash", "/etc/start.sh"]
5 changes: 5 additions & 0 deletions js/ajax/libs/jquery/1.12.4/jquery.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions js/ajax/libs/jquery/2.1.4/jquery-2.1.4.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h2>Upload forbidden</h2>
</div>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="/js/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/dropzone.js"></script>
<script src="/js/pictshare.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion templates/text.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h4><?php echo $slogan; ?></h4>
</div>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="/js/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="/js/bootstrap.min.js"></script>


Expand Down
4 changes: 1 addition & 3 deletions templates/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="copyright" content="Copyright <?php echo date("Y"); ?> PictShare" />
<meta id="viewport" name="viewport" content="width=<?php echo $width ?>, user-scalable=yes" />
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="/js/ajax/libs/jquery/2.1.4/jquery-2.1.4.min.js"></script>

<style type="text/css">
*{margin:0px;padding:0px;}
Expand Down Expand Up @@ -85,7 +85,5 @@
}
</script>



</body>
</html>