diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
new file mode 100644
index 00000000..a1125960
--- /dev/null
+++ b/.github/workflows/docker.yml
@@ -0,0 +1,20 @@
+name: Create and publish a package
+on:
+  push:
+    branches: [ master ]
+jobs:
+  build-and-push-image:
+    runs-on: ubuntu-latest
+    steps:
+    - name: Checkout
+      uses: actions/checkout@v2
+
+    - name: Build container image
+      uses: docker/build-push-action@v1
+      with:
+        username: ${{ github.actor }}
+        password: ${{ secrets.GITHUB_TOKEN }}
+        registry: docker.pkg.github.com
+        repository: ${{ github.repository }}/base
+        tag_with_sha: true
+        tag_with_ref: true
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index bcf80fa9..466004b0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,9 +1,10 @@
-FROM ubuntu:18.04
+FROM ubuntu:20.04
+ENV DEBIAN_FRONTEND=noninteractive
 RUN apt-get update
-RUN apt-get install -y software-properties-common python3 python3-setuptools
+RUN apt-get install -y software-properties-common python3-pip
 RUN add-apt-repository ppa:gijzelaar/snap7
 RUN apt-get update
 RUN apt-get install -y libsnap7-dev libsnap7-1
 ADD . /code
 WORKDIR /code
-RUN python3 ./setup.py install
+RUN pip3 install .