From cbdbfd39a93bf14b18ad139906cb9515c5ff2f64 Mon Sep 17 00:00:00 2001 From: cis-kuldeep Date: Thu, 29 Apr 2021 22:32:07 +0530 Subject: [PATCH] Modified Dockerfile & Flatpak build doc --- packages/flatpak/Dockerfile | 7 +++++++ packages/flatpak/dockerfile | 19 ------------------- packages/flatpak/requirements.txt | 2 +- 3 files changed, 8 insertions(+), 20 deletions(-) create mode 100644 packages/flatpak/Dockerfile delete mode 100644 packages/flatpak/dockerfile diff --git a/packages/flatpak/Dockerfile b/packages/flatpak/Dockerfile new file mode 100644 index 00000000..fb0497db --- /dev/null +++ b/packages/flatpak/Dockerfile @@ -0,0 +1,7 @@ +FROM python:alpine3.7 +COPY . /app +WORKDIR /app +RUN pip install -r requirements.txt +EXPOSE 5000 +ENTRYPOINT [ "python" ] +CMD [ "server.py" ] \ No newline at end of file diff --git a/packages/flatpak/dockerfile b/packages/flatpak/dockerfile deleted file mode 100644 index d2a71885..00000000 --- a/packages/flatpak/dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -FROM ubuntu:20.04 - -MAINTANER Your Name "kuldeep.k@cisinlabs.com" - -RUN apt-get update -y && \ - apt-get install -y python-pip python-dev - -# We copy just the requirements.txt first to leverage Docker cache -COPY ./requirements.txt /app/requirements.txt - -WORKDIR /app - -RUN pip install -r requirements.txt - -COPY . /app - -ENTRYPOINT [ "python" ] - -CMD [ "server.py" ] \ No newline at end of file diff --git a/packages/flatpak/requirements.txt b/packages/flatpak/requirements.txt index 8ab6294c..2077213c 100644 --- a/packages/flatpak/requirements.txt +++ b/packages/flatpak/requirements.txt @@ -1 +1 @@ -flask \ No newline at end of file +Flask \ No newline at end of file