1
0
Fork 0

Part 1 ex. 16

This commit is contained in:
Vili Sinervä 2023-03-16 15:38:44 +02:00
parent ad09df6e2b
commit 1a5357e1df
2 changed files with 12 additions and 0 deletions

8
Part1/Dockerfile Normal file
View file

@ -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"]

View file

@ -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/)