proxy/Dockerfile.Proxy

19 lines
342 B
Docker
Raw Normal View History

2023-11-16 11:56:52 +00:00
FROM fascinated/docker-images:node-pnpm-latest
2023-11-16 12:32:38 +00:00
2023-11-16 11:56:52 +00:00
WORKDIR /usr/src/app
2023-11-16 12:32:38 +00:00
# Copy root package.json and lockfile
COPY package.json ./
2023-11-16 12:49:58 +00:00
COPY pnpm-lock.yaml ./
2023-11-16 12:32:38 +00:00
2023-11-16 12:49:58 +00:00
# Copy the proxy package.json
COPY apps/proxy/package.json ./apps/proxy/package.json
2023-11-16 12:32:38 +00:00
RUN pnpm install
# Copy app source
COPY . .
2023-11-16 11:56:52 +00:00
EXPOSE 3000
2023-11-16 12:32:38 +00:00
CMD [ "nnpm", "apps/proxy/index.js" ]