mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Start again from scratch
Former-commit-id: 02983a8b61d9fd5ff30de4967c9741ad2478a023 [formerly d55b11ab31697ca40d2d0d80f7261df3c76fc812] [formerly 5d236ead7feece2b73db56d195bdcbcc7623b081 [formerly 4433a9a3b172c82a283df36a601e6c5e581c8ff6 [formerly52abf02847
]]] Former-commit-id: 1176ee8d4cbb8d093ba3b08046c7e93f6c0d835b [formerly f7a072e5000efd8e1b58cfb04336ae8687519d3a] Former-commit-id: 8441f7eff180268e16a037abd2de7e07c1104926 Former-commit-id:2640e02b72
This commit is contained in:
32
Dockerfile
32
Dockerfile
@@ -1,32 +0,0 @@
|
||||
# sudo docker build -t cowyo .
|
||||
# sudo docker run -it -p 8003:8003 -v `pwd`/data:/data cowyo bash
|
||||
FROM ubuntu:16.04
|
||||
|
||||
# Get basics
|
||||
RUN apt-get update
|
||||
RUN apt-get -y upgrade
|
||||
RUN apt-get install -y golang git wget curl vim
|
||||
RUN mkdir /usr/local/work
|
||||
ENV GOPATH /usr/local/work
|
||||
|
||||
# Install cowyo
|
||||
WORKDIR "/root"
|
||||
RUN go get github.com/schollz/cowyo
|
||||
RUN git clone https://github.com/schollz/cowyo.git
|
||||
WORKDIR "/root/cowyo"
|
||||
RUN git pull
|
||||
RUN go build
|
||||
|
||||
# Setup supervisor
|
||||
RUN apt-get update && apt-get install -y supervisor
|
||||
|
||||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
# Add Tini
|
||||
ENV TINI_VERSION v0.9.0
|
||||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
|
||||
RUN chmod +x /tini
|
||||
ENTRYPOINT ["/tini", "--"]
|
||||
|
||||
# Startup
|
||||
CMD ["/usr/bin/supervisord"]
|
Reference in New Issue
Block a user