10 lines
242 B
Docker
10 lines
242 B
Docker
|
FROM fascinated/docker-images:node-pnpm-latest
|
||
|
|
||
|
ENV NODE_ENV=production
|
||
|
WORKDIR /usr/src/app
|
||
|
COPY package*.json pnpm-lock.yaml ./
|
||
|
RUN pnpm install --production --silent && mv node_modules ../
|
||
|
COPY . .
|
||
|
EXPOSE 3000
|
||
|
CMD ["node", "src/index.js"]
|