diff options
| author | Fuwn <[email protected]> | 2023-08-27 00:48:50 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-08-27 00:48:50 -0700 |
| commit | 0693e3319aa0393ce8a52d8d00c618c780d87865 (patch) | |
| tree | aa5da31a957004444aabe5434b0ef15f29da2a9b /Dockerfile | |
| parent | feat(svelte): remove adapter (diff) | |
| download | due.moe-0693e3319aa0393ce8a52d8d00c618c780d87865.tar.xz due.moe-0693e3319aa0393ce8a52d8d00c618c780d87865.zip | |
ci(docker): dockerise
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..a905fa2f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM node:18.16-alpine as build + +WORKDIR /due + +COPY package.json ./ + +RUN yarn install + +COPY ./ ./ + +RUN yarn run build + +FROM node:18.16-alpine + +WORKDIR /due + +COPY --from=build /due . + +EXPOSE 4173 + +CMD ["yarn", "run", "preview", "--", "--host", "0.0.0.0"]
\ No newline at end of file |