From fa62d3adfec26b7e5c9daa65f83dd0408c16e76e Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 27 Jan 2021 17:03:16 -0800 Subject: [PATCH] Not caching apk fetches and now providing a sample .env file for at /opt/freechat/.env --- docker/Dockerfile | 19 +++++++++++++------ docker/sample.env | 11 +++++++++++ 2 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 docker/sample.env diff --git a/docker/Dockerfile b/docker/Dockerfile index 9158428..3dcb6a8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,16 +1,23 @@ # This File basically sets up a fresh alpine install with all the things # required for setting up a new freechat instance -FROM alpine:latest +# NOTE: this is the production docker so its purposefully tiny to let others +# build what they want on it +# It's really small and missing basically every feature you _want_ + +FROM nginx:alpine # First we simply install all the things we may need to build/ -RUN apk add mysql -RUN apk add nginx -RUN apk add openssl-dev -RUN apk add cargo -RUN apk add git +RUN apk add --no-cache mysql +RUN apk add --no-cache nginx +RUN apk add --no-cache openssl-dev +RUN apk add --no-cache cargo +RUN apk add --no-cache git # Now we being the freechat installation process RUN git clone https://gitlab.com/shockrah/freechat.git/ /opt/freechat/ RUN cd /opt/freechat/ && sh docker-auto-build.sh --no-cargo-cache +# Sample env file to copy into the base image +# All keys present but not set to anything(null) +COPY sample.env /opt/freechat/.env diff --git a/docker/sample.env b/docker/sample.env new file mode 100644 index 0000000..2ff8bec --- /dev/null +++ b/docker/sample.env @@ -0,0 +1,11 @@ +# Mysql key data +DATABASE_NAME= +DATABASE_PASS= +DATABASE_USER= +DATABASE_HOST= + +# Server meta things +SERVER_NAME="Freechat Dev Server" +SERVER_DESCRIPTION="Server for sick development things" +SERVER_URL=localhost +SERVER_PORT=8888