Fixed some errors

Removed the checksum check
This commit is contained in:
Alexander Trost
2015-09-26 16:34:10 +02:00
parent 2ebcebdb67
commit bddb7e89e6

View File

@@ -2,7 +2,7 @@ FROM ubuntu:trusty
MAINTAINER Alexander Trost <galexrt@googlemail.com>
ENV ZULIP_GROUP="zulip" ZULIP_USER="zulip" ZULIP_DIR="/opt/zulip" \
ENV ZULIP_GROUP="zulip" ZULIP_USER="zulip" ZULIP_DIR="/root/zulip" \
ZULIP_VERSION="1.3.3" ZULIP_CHECKSUM="60943383289101b0eb84f0ff638c20fcc355511b"
ADD entrypoint.sh /entrypoint.sh
@@ -12,13 +12,12 @@ RUN chmod 755 /entrypoint.sh && \
useradd -u 3000 -r -g "$ZULIP_GROUP" -d "$ZULIP_DIR" "$ZULIP_USER" && \
apt-get update && \
apt-get upgrade -y && \
apt-get install wget && \
cd /tmp && \
apt-get install wget python-six && \
cd /root && \
wget "https://www.zulip.com/dist/releases/zulip-server-$ZULIP_VERSION.tar.gz" && \
if [ "$(sha1sum -c {file}.sha1)" != "$ZULIP_CHECKSUM" ]; then exit 1; fi && \
tar xfz "zulip-server-$ZULIP_VERSION.tar.gz" -C /opt && \
mv "/opt/zulip-server-$ZULIP_VERSION" "$ZULIP_DIR" && \
tar xfz "/root/zulip-server-$ZULIP_VERSION.tar.gz" -C /root && \
mv "/root/zulip-server-$ZULIP_VERSION" "$ZULIP_DIR" && \
cd "ZULIP_DIR" && \
./scripts/setup/install
ENTRYPOINT /entrypoint.sh