update
This commit is contained in:
parent
8e1a1bf5af
commit
d23ff54de5
@ -8,23 +8,18 @@ WORKDIR /app
|
|||||||
|
|
||||||
RUN npm install -g pm2
|
RUN npm install -g pm2
|
||||||
|
|
||||||
# Copy package.json and your lockfile, here we add pnpm-lock.yaml for illustration
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN npm i
|
RUN npm i
|
||||||
|
|
||||||
# Copy the entire project
|
|
||||||
COPY --link . .
|
COPY --link . .
|
||||||
|
|
||||||
# Build the project
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
|
||||||
COPY --from=build /src/.output /src/.output
|
COPY --from=build /src/.output /src/.output
|
||||||
|
|
||||||
# Change the port and host
|
|
||||||
ENV PORT=3001
|
ENV PORT=3001
|
||||||
|
|
||||||
EXPOSE 3001
|
EXPOSE 3001
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user