This commit is contained in:
parent
fe97190fab
commit
9001c161d8
14
Dockerfile
14
Dockerfile
@ -5,17 +5,17 @@ ENV APP=${APP}
|
|||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Copy root package.json and lockfile
|
|
||||||
COPY package.json ./
|
|
||||||
COPY pnpm-lock.yaml ./
|
|
||||||
|
|
||||||
# Copy the app's sourse
|
# Copy the app's sourse
|
||||||
COPY apps/${APP} ./apps/${APP}
|
COPY apps/${APP} ./${APP}
|
||||||
|
|
||||||
RUN pnpm install
|
# Install dependencies
|
||||||
|
RUN pnpm install --frozen-lockfile --production
|
||||||
|
|
||||||
RUN cd apps/$APP && pnpm run build
|
# Build the app
|
||||||
|
RUN pnpm run build
|
||||||
|
|
||||||
|
# Expose the port
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
# Run the app
|
||||||
CMD pnpm apps/$APP/dist/index.js
|
CMD pnpm apps/$APP/dist/index.js
|
Loading…
Reference in New Issue
Block a user