24 lines
848 B
Docker
24 lines
848 B
Docker
# This File basically sets up a fresh alpine install with all the things
|
|
# required for setting up a new freechat instance
|
|
|
|
# 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 --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
|