From ee60d47cc2744bf21c7466af786547e13d10f3e1 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Wed, 21 Jun 2023 17:04:19 -0400 Subject: [PATCH] docker --- lightning/Dockerfile | 6 ++++++ lightning/build | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 lightning/Dockerfile create mode 100755 lightning/build diff --git a/lightning/Dockerfile b/lightning/Dockerfile new file mode 100644 index 0000000..25d33d4 --- /dev/null +++ b/lightning/Dockerfile @@ -0,0 +1,6 @@ +# syntax=docker/dockerfile:experimental + +FROM node:alpine +COPY . . +CMD npm run start +EXPOSE 3000 diff --git a/lightning/build b/lightning/build new file mode 100755 index 0000000..573e05d --- /dev/null +++ b/lightning/build @@ -0,0 +1,5 @@ +#!/bin/bash + +pnpm install && +pnpm run build && +docker build -t lightning .