Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Mar 6, 2019
1 parent cd9f061 commit 33b4a1f
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,21 @@ RUN mkdir /app
WORKDIR /app

ENV KEGBOT_VERSION=master
RUN apk add curl \
&& curl -k -L https://github.com/Kegbot/kegbot-server/archive/${KEGBOT_VERSION}.tar.gz -o /tmp/kegbot.tar.gz \
&& tar -xf /tmp/kegbot.tar.gz -C /tmp/ \
&& ls -la /tmp/ \
&& cp -r /tmp/kegbot-server-${KEGBOT_VERSION}/* /app/ \
&& apk add gcc musl-dev \
&& apk add zlib-dev libjpeg-turbo libjpeg-turbo-dev libjpeg openjpeg \
&& apk add mysql-client \
&& apk add mariadb-dev \
&& ls -la ./ \
&& python ./setup.py install \
&& apk del musl-dev gcc \
&& rm -rf /tmp/kegbot*
RUN apk add curl
RUN curl -k -L https://github.com/Kegbot/kegbot-server/archive/${KEGBOT_VERSION}.tar.gz -o /tmp/kegbot.tar.gz
RUN tar -xf /tmp/kegbot.tar.gz -C /tmp/
RUN ls -la /tmp/
RUN cp -r /tmp/kegbot-server-${KEGBOT_VERSION}/* /app/
RUN apk add gcc musl-dev
RUN apk add zlib-dev libjpeg-turbo libjpeg-turbo-dev libjpeg openjpeg
RUN apk add mysql-client
RUN apk add mariadb-dev
RUN ls -la ./
RUN sed '/st_mysql_options options;/a unsigned int reconnect;' /usr/include/mysql/mysql.h -i.bkp
RUN python ./setup.py install
RUN apk del musl-dev gcc
RUN rm -rf /tmp/kegbot*


RUN mkdir -p /etc/kegbot
COPY local_settings.py /etc/kegbot/
Expand Down

0 comments on commit 33b4a1f

Please sign in to comment.