mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-03 07:36:23 -07:00
23 lines
458 B
Docker
23 lines
458 B
Docker
FROM golang:1.18-alpine3.17
|
|
|
|
COPY docker/build-image.sh .
|
|
|
|
RUN ["./build-image.sh"]
|
|
|
|
WORKDIR /opt/gochan
|
|
|
|
COPY sample-configs/gochan-fastcgi.nginx /etc/nginx/http.d/gochan.conf
|
|
COPY sample-configs/gochan.example.json /etc/gochan/gochan.json
|
|
|
|
# Get all
|
|
COPY . .
|
|
RUN ["./build.py"]
|
|
RUN ["./build.py", "install"]
|
|
|
|
|
|
EXPOSE 9000
|
|
|
|
|
|
COPY docker/startup.sh /opt/gochan/startup.sh
|
|
COPY docker/wait-for.sh /opt/gochan/wait-for.sh
|
|
CMD ["/opt/gochan/docker/startup.sh"]
|