From 73073810001576acb11c1728b648ee03bd7d2d36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksandar=20Todorovi=C4=87?= Date: Mon, 26 Mar 2018 14:09:09 +0200 Subject: [PATCH] Pretty basic ami-frontend Dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1f50f60 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# Bases the image on Ubuntu 16.04 (since 18.04 is still not available) +FROM ubuntu:16.04 + +# Basic update/upgrade mechanism + installs necessary packages +RUN apt update && \ + apt upgrade -y && \ + apt install apt-transport-https ca-certificates nodejs npm -y + +# Install Bower & Grunt using npm +RUN npm install -g bower grunt-cli + +# Defines the default work directory +WORKDIR /data + +# Copies AMI files to the desired directory +COPY . /data + +# Defines the default command to be run once container is up and running. +# It will probably make sense to have "run.sh" which will actually define these. +CMD ["nodejs", "-v"]