This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@ -0,0 +1,21 @@
|
||||
FROM fascinated/docker-images:node-pnpm-latest
|
||||
|
||||
ARG APP
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Copy root package.json and lockfile
|
||||
COPY package.json ./
|
||||
COPY pnpm-lock.yaml ./
|
||||
|
||||
# Copy the package.json
|
||||
COPY apps/${APP}/package.json ./apps/${APP}/package.json
|
||||
|
||||
RUN pnpm install
|
||||
|
||||
# Copy app source
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "pnpm", "apps/${APP}/dist/index.js" ]
|
Reference in New Issue
Block a user