diff options
| author | Ahmed Abdelhalim <[email protected]> | 2023-07-30 16:12:29 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2023-07-30 16:12:29 +0200 |
| commit | 02fefc48afe713a1f03720cdfb22f438f7b97c0e (patch) | |
| tree | 34b1f7f292cda2304374c79a050ce6b5f6ab1912 /Dockerfile | |
| parent | 7c78c839c25f8685020749761d46aab6e488b049 (diff) | |
Add docker development support
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..98c4f35 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM node:18 as build + +WORKDIR /app +COPY package.json yarn.lock . + +RUN yarn install --all +COPY . . +RUN yarn build + + +FROM busybox:1.36 +RUN adduser -D static +WORKDIR /home/static +COPY --from=build /app/public . +CMD ["busybox", "httpd", "-f", "-v", "-p", "3333"] |
