Dockerfile 929 B

123456789101112131415161718192021222324
  1. FROM debian:latest
  2. MAINTAINER Volodymyr Tkach <vladimirok5959@gmail.com>
  3. ENV FAVE_HOST=0.0.0.0 FAVE_PORT=8080 FAVE_DIR=/app/hosts FAVE_DEBUG=false FAVE_KEEPALIVE=true
  4. ADD https://github.com/vladimirok5959/golang-fave/releases/download/v1.6.5/fave.linux-amd64.tar.gz /app/fave.linux-amd64.tar.gz
  5. ADD https://github.com/vladimirok5959/golang-fave/releases/download/v1.6.5/localhost.tar.gz /app/hosts/localhost.tar.gz
  6. ARG DEBIAN_FRONTEND=noninteractive
  7. RUN apt-get -y update && apt-get -y upgrade && \
  8. apt-get install -y ca-certificates && \
  9. dpkg-reconfigure -p critical ca-certificates && \
  10. tar -zxf /app/fave.linux-amd64.tar.gz -C /app && \
  11. tar -zxf /app/hosts/localhost.tar.gz -C /app/hosts && \
  12. rm /app/fave.linux-amd64.tar.gz && \
  13. rm /app/hosts/localhost.tar.gz && \
  14. mkdir /app/src && cp -R /app/hosts/localhost /app/src && \
  15. chmod +x /app/fave.linux-amd64
  16. EXPOSE 8080
  17. VOLUME /app/hosts
  18. CMD /app/fave.linux-amd64