forked from xiaobaiweinuli/aipan-netdisk-search
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92d382d
commit 9eac105
Showing
4 changed files
with
33 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
FROM node:alpine AS builder | ||
FROM ubuntu:latest | ||
LABEL authors="Lei" | ||
|
||
WORKDIR /app | ||
FROM node:18.17.1-alpine | ||
|
||
ADD . . | ||
WORKDIR /app | ||
|
||
RUN npm install -g pnpm | ||
RUN pnpm install && pnpm build | ||
COPY package*.json ./ | ||
|
||
WORKDIR /app | ||
RUN npm install | ||
RUN npm run build | ||
|
||
CMD pnpm run dev | ||
COPY . . | ||
|
||
EXPOSE 3001 | ||
|
||
# Set NuxtJS system variables so the application can be reached on your network | ||
ENV NUXT_HOST=0.0.0.0 | ||
ENV NUXT_PORT=3001 | ||
|
||
CMD [ "npm", "run", "start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters