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