Last edited:
Hi All,
I am trying to build a container that ref's a local zip file but i can't seem to get around this error:
Here's my docker file - not sure why it can't find lin*
thanks
i know this is something obvious - i'm a bit new to this
thank you
I am trying to build a container that ref's a local zip file but i can't seem to get around this error:
mv: cannot stat 'lin*': No such file or directory
The command '/bin/sh -c unzip -q lin.zip && rm -rf lin.zip && rm -rf __MACOSX && mv lin* /gunbot && rm -f /gunbot/config.js && rm -f /gunbot/tgconfig.json && rm -f /gunbot/autoconfig.json && chmod +x /gunbot/gunthy-linux' returned a non-zero code: 1
Here's my docker file - not sure why it can't find lin*
Code:
FROM bitnami/minideb:latest
ARG DEBIAN_FRONTEND=noninteractive
ARG VCS_REF
LABEL org.label-schema.vcs-ref=$VCS_REF org.label-schema.vcs-url="https://github.com/magicdude4eva/docker-gunbot"
## Setup Enviroment
ENV TZ=Australia/Melbourne \
TERM=xterm-256color \
FORCE_COLOR=true \
NPM_CONFIG_COLOR=always \
MOCHA_COLORS=true \
INSTALL_URL=${INSTALL_URL}
## Setup pre-requisites
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get -y update && \
apt-get install -y apt-utils
## Install additional libraries and upgrade
RUN apt-get -y upgrade && \
apt-get install -y unzip curl fontconfig fonts-dejavu-extra && \
apt-get clean -y && \
apt-get autoclean -y && \
apt-get autoremove -y
RUN fc-cache -fv
## Install Gunbot
WORKDIR /tmp
ADD gunthy-linux.zip /tmp/lin.zip
RUN unzip -q lin.zip \
&& rm -rf lin.zip \
&& rm -rf __MACOSX \
&& mv lin* /gunbot \
&& rm -f /gunbot/config.js \
&& rm -f /gunbot/tgconfig.json \
&& rm -f /gunbot/autoconfig.json \
&& chmod +x /gunbot/gunthy-linux
WORKDIR /gunbot
EXPOSE 5000
VOLUME [ "/gunbot/backups", "/gunbot/logs", "/gunbot/json", "/gunbot/config.js", "/gunbot/gunbotgui.db"]
CMD /gunbot/gunthy-linux
thanks
-- post merged: --
i know this is something obvious - i'm a bit new to this