You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
422 B
14 lines
422 B
## 1. pnpm run build |
|
## 2. docker build --platform linux/amd64 -t website:0.0.0 . -f Dockerfile |
|
## 3. docker save -o website:0.0.0.tar <image_id> |
|
|
|
FROM node:20-alpine |
|
ENV HOST 0.0.0.0 |
|
RUN mkdir -p /nuxt |
|
COPY .output /nuxt |
|
WORKDIR /nuxt |
|
## fix @nuxt/image [https://github.com/nuxt/image/issues/1210] |
|
RUN rm -rf server/node_modules/sharp && cd server && npm install sharp@0.33.2 |
|
EXPOSE 3000 |
|
CMD ["node","server/index.mjs"] |
|
|
|
|