mirror of
https://github.com/chubin/wttr.in
synced 2024-11-14 16:17:19 +00:00
minor fixes of Dockerfile and related things
This commit is contained in:
parent
a0c4159908
commit
aa15990fc8
5 changed files with 6 additions and 13 deletions
7
.wegorc
7
.wegorc
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"APIKey": "",
|
||||
"City": "London",
|
||||
"Numdays": 3,
|
||||
"Imperial": false,
|
||||
"Lang": "en"
|
||||
}
|
12
Dockerfile
12
Dockerfile
|
@ -17,12 +17,15 @@ WORKDIR /app
|
|||
COPY ./bin /app/bin
|
||||
COPY ./lib /app/lib
|
||||
COPY ./share /app/share
|
||||
COPY ./GeoLite2-City.mmdb /app
|
||||
COPY ./requirements.txt /app
|
||||
COPY ./src/we-lang/we-lang.go /app
|
||||
|
||||
# There are several files that must be fetched/created manually
|
||||
# before building the image
|
||||
COPY ./.wegorc /root
|
||||
COPY ./we-lang.go /app
|
||||
COPY ./.ip2location.key /root
|
||||
COPY ./airports.dat /app
|
||||
COPY ./GeoLite2-City.mmdb /app
|
||||
|
||||
RUN export PATH=$PATH:/go/bin && \
|
||||
go get -u github.com/mattn/go-colorable && \
|
||||
|
@ -38,7 +41,7 @@ RUN mkdir -p /var/log/supervisor && \
|
|||
mkdir -p /etc/supervisor/conf.d
|
||||
RUN chmod -R o+rw /var/log/supervisor && \
|
||||
chmod -R o+rw /var/run
|
||||
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
||||
COPY share/docker/supervisord.conf /etc/supervisor/supervisord.conf
|
||||
|
||||
ENV WTTR_MYDIR="/app"
|
||||
ENV WTTR_GEOLITE="/app/GeoLite2-City.mmdb"
|
||||
|
@ -46,9 +49,6 @@ ENV WTTR_WEGO="/root/go/bin/we-lang"
|
|||
ENV WTTR_LISTEN_HOST="0.0.0.0"
|
||||
ENV WTTR_LISTEN_PORT="8002"
|
||||
|
||||
|
||||
EXPOSE 8002
|
||||
|
||||
CMD ["/usr/local/bin/supervisord"]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue