fix: Update dockerfile
This commit is contained in:
		
							
								
								
									
										12
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -1,7 +1,12 @@
 | 
			
		||||
FROM node:16.14.2-alpine as install
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
RUN apk add --no-cache curl
 | 
			
		||||
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6
 | 
			
		||||
RUN pnpm add -g pnpm
 | 
			
		||||
 | 
			
		||||
COPY package*.json .
 | 
			
		||||
RUN yarn install
 | 
			
		||||
RUN pnpm install
 | 
			
		||||
 | 
			
		||||
FROM node:16.14.2-alpine
 | 
			
		||||
ARG TARGETPLATFORM
 | 
			
		||||
@@ -23,12 +28,15 @@ COPY . .
 | 
			
		||||
RUN apk add --no-cache git git-lfs openssh-client curl jq cmake sqlite openssl
 | 
			
		||||
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6
 | 
			
		||||
RUN pnpm add -g pnpm
 | 
			
		||||
 | 
			
		||||
RUN mkdir -p ~/.docker/cli-plugins/
 | 
			
		||||
RUN curl -SL https://cdn.coollabs.io/bin/$TARGETPLATFORM/docker-20.10.9 -o /usr/bin/docker
 | 
			
		||||
RUN curl -SL https://cdn.coollabs.io/bin/$TARGETPLATFORM/docker-compose-linux-2.3.4 -o ~/.docker/cli-plugins/docker-compose
 | 
			
		||||
RUN chmod +x ~/.docker/cli-plugins/docker-compose /usr/bin/docker
 | 
			
		||||
 | 
			
		||||
RUN pnpm prisma generate
 | 
			
		||||
RUN pnpm build
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
EXPOSE 3000
 | 
			
		||||
CMD ["pnpm", "start"]
 | 
			
		||||
		Reference in New Issue
	
	Block a user