Hauk/docker/Dockerfile.amd64
Marius Lindvall 8179836e8d Clean up multiarch Docker setup
Remove jq as it is no longer needed, and add warnings to the Dockerfiles meant for Docker Hub.
2019-12-07 23:18:10 +01:00

33 lines
1.7 KiB
Text

#------------------------------------------------------------------------------#
# DO NOT BUILD THIS FILE DIRECTLY! #
#------------------------------------------------------------------------------#
# This Dockerfile is for automated builds on Docker Hub only. If you want to #
# build the Hauk backend for x86_64, you should instead build the main #
# Dockerfile in the root of the repository on an x86_64-capable CPU. #
# #
# If you want to cross-compile Hauk for x86_64 on a non-x86_64 CPU, and you #
# are absolutely certain that you know what you are doing and that this is #
# what you want to do: you must have qemu-user-static binaries installed and #
# registered on your build system. #
# #
# Then change the FROM instruction in the root Dockerfile (NOT *this* file) so #
# that it pulls amd64/php:apache instead of php:apache to ensure you fetch #
# Apache and PHP from upstream for the right architecture. #
#------------------------------------------------------------------------------#
FROM amd64/php:apache
COPY backend-php/ /var/www/html/
COPY frontend/ /var/www/html/
COPY docker/start.sh .
RUN apt-get update && \
apt-get install -y memcached libmemcached-dev zlib1g-dev && \
pecl install memcached && \
docker-php-ext-enable memcached
EXPOSE 80/tcp
VOLUME /etc/hauk
STOPSIGNAL SIGINT
RUN chmod +x ./start.sh
CMD ["./start.sh"]