nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests |Archive

Dockerfile (678B)


      1 # https://github.com/huashengdun/webssh/blob/master/Dockerfile
      2 FROM python:3-alpine
      3 
      4 ARG WEBSSH_VERSION="1.6.3"
      5 ENV WEBSSH_VERSION="${WEBSSH_VERSION}"
      6 
      7 RUN apk update && apk add --no-cache libc-dev libffi-dev gcc curl
      8 
      9 RUN mkdir -p /app
     10 WORKDIR /app
     11 
     12 RUN curl -LO "https://github.com/huashengdun/webssh/archive/refs/tags/v${WEBSSH_VERSION}.tar.gz"
     13 RUN tar -xf "v${WEBSSH_VERSION}.tar.gz"
     14 WORKDIR "/app/webssh-${WEBSSH_VERSION}"
     15 
     16 RUN pip install -r requirements.txt --no-cache-dir && \
     17   apk del gcc libc-dev libffi-dev && \
     18   addgroup webssh && \
     19   adduser -Ss /bin/false -g webssh webssh && \
     20   chown -R webssh:webssh /app
     21 
     22 EXPOSE 8888/tcp
     23 USER webssh
     24 CMD ["python", "run.py"]