init: add code
This commit is contained in:
commit
2e8de85ee7
33 changed files with 3940 additions and 0 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
FROM node:alpine
|
||||
|
||||
COPY . /src
|
||||
WORKDIR /src
|
||||
EXPOSE 4173
|
||||
|
||||
RUN npm i -g pnpm # fuck npm
|
||||
RUN pnpm i
|
||||
RUN pnpm run build
|
||||
|
||||
RUN adduser website --disabled-password --gecos "" --no-create-home
|
||||
RUN chown -R website:website /src
|
||||
USER website
|
||||
|
||||
CMD ["pnpm", "run", "preview", "--host"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue