Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
#Download base image ubuntu 16.10
FROM ubuntu:16.10
#Download base image ubuntu latest
FROM ubuntu:latest

# update Ubuntu Software repository
RUN apt-get update
ENV DEBIAN_FRONTEND=noninteractive

# installing command line tools
RUN apt-get -y install nano less git python3 python3-pip
WORKDIR /usr/src/doorstop

WORKDIR /app
RUN git clone https://github.com/jacebrowning/doorstop.git
COPY requirements.txt .

WORKDIR /app/doorstop
RUN python3 setup.py install
# Install required packages
RUN apt-get update \
&& apt-get install -y python3-pip python3-dev git \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& pip3 --no-cache-dir install --upgrade pip \
&& rm -rf /var/lib/apt/lists/* \
&& cd /usr/src/doorstop \
&& pip install --no-cache-dir -r requirements.txt

WORKDIR /data
WORKDIR /usr/src/doorstop/data

ENTRYPOINT /bin/bash
2 changes: 1 addition & 1 deletion dockerRun.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
docker run --name doorstop --rm \
-v "$(pwd)/data:/data" \
-v "$(pwd)/data:/usr/src/doorstop/data" \
-i -t doorstop_image
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## latest doorstop
doorstop