MyTerminals / Dockerfile
clone3's picture
Upload 9 files
e732311 verified
raw
history blame
211 Bytes
FROM node:21.7.3
RUN useradd -ms /bin/bash api
# /home/api \
WORKDIR /home/api
COPY package*.json /home/api/
RUN corepack enable pnpm
RUN pnpm install
COPY . .
USER api
EXPOSE 5001
CMD ["pnpm", "start"]