follow suggestions from @setenforce0, fix a typo and remove redundent command

This commit is contained in:
Kenneth Zhao 2019-12-04 19:55:07 -08:00
parent 79eb3cea06
commit 288d747eb4
2 changed files with 2 additions and 3 deletions

View File

@ -17,8 +17,7 @@ EXPOSE 8080
ADD ./entrypoint.sh /entrypoint.sh
RUN mkdir -p /build \
&& apk --no-cache add tini pcre-dev sqlite-dev \
&& rm -rf /var/cache/apk/*
&& apk --no-cache add tini pcre-dev sqlite-dev
COPY --from=nim /src/nitter/nitter /usr/local/bin
COPY --from=nim /src/nitter/nitter.conf /build

View File

@ -9,7 +9,7 @@ WORKD=/data
build_working_dir() {
[ -f $WORKD/nitter.conf ] || cp -f $BUILD/nitter.conf $WORKD/.
[ -d $WORKD/public ] || cp -rf $BUILD/public $WORKD/.
[ -d $WORKD/tmp ] || mkdir -p $WOKRD/tmp
[ -d $WORKD/tmp ] || mkdir -p $WORKD/tmp
}
# -- program starts