From 1a5357e1dfef9499cc11a684bf3403ff0d670dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vili=20Sinerv=C3=A4?= Date: Thu, 16 Mar 2023 15:38:44 +0200 Subject: [PATCH] Part 1 ex. 16 --- Part1/Dockerfile | 8 ++++++++ Part1/Exercise_16/submission.txt | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 Part1/Dockerfile create mode 100644 Part1/Exercise_16/submission.txt diff --git a/Part1/Dockerfile b/Part1/Dockerfile new file mode 100644 index 0000000..d93ecab --- /dev/null +++ b/Part1/Dockerfile @@ -0,0 +1,8 @@ +FROM node:16.19 +EXPOSE 8080 +WORKDIR /usr/src/app +COPY package*.json ./ +COPY . . +RUN npm install && npm run build +RUN npm install -g serve +CMD ["serve", "-s", "-l", "8080", "build"] diff --git a/Part1/Exercise_16/submission.txt b/Part1/Exercise_16/submission.txt new file mode 100644 index 0000000..cb13d23 --- /dev/null +++ b/Part1/Exercise_16/submission.txt @@ -0,0 +1,4 @@ +I copied the example-frontend and deployed it to fly.io. I had to remove Dockerfile from .gitignore, and change the port to 8080, but otherwise everything was fine as-is. + +Note! Frontend only! +[Link to app](https://crimson-water-4690.fly.dev/)