mirror of
				https://github.com/jaypyles/Scraperr.git
				synced 2025-11-04 08:24:55 +00:00 
			
		
		
		
	wip: update Dockerfile with next deps
This commit is contained in:
		
							
								
								
									
										19
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -7,11 +7,27 @@ RUN pdm config python.use_venv false
 | 
			
		||||
 | 
			
		||||
COPY pyproject.toml pdm.lock /project/app/
 | 
			
		||||
COPY ./api/backend/ /project/app/backend
 | 
			
		||||
COPY ./dist/ /project/app/dist
 | 
			
		||||
 | 
			
		||||
WORKDIR /project/app
 | 
			
		||||
RUN pdm install
 | 
			
		||||
 | 
			
		||||
# Build next dependencies
 | 
			
		||||
FROM node:latest as jsbuilder
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
COPY package*.json ./
 | 
			
		||||
 | 
			
		||||
RUN npm install
 | 
			
		||||
 | 
			
		||||
COPY public /app/public
 | 
			
		||||
COPY src /app/src
 | 
			
		||||
COPY tsconfig.json /app/tsconfig.json
 | 
			
		||||
COPY tailwind.config.js /app/tailwind.config.js
 | 
			
		||||
COPY next.config.mjs /app/next.config.mjs
 | 
			
		||||
COPY postcss.config.js /app/postcss.config.js
 | 
			
		||||
 | 
			
		||||
RUN npm run build
 | 
			
		||||
 | 
			
		||||
# Create final image
 | 
			
		||||
FROM python:3.10-slim
 | 
			
		||||
 | 
			
		||||
@@ -19,6 +35,7 @@ ENV PYTHONPATH=/project/pkgs
 | 
			
		||||
COPY --from=pybuilder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
 | 
			
		||||
COPY --from=pybuilder /usr/local/bin /usr/local/bin
 | 
			
		||||
COPY --from=pybuilder /project/app /project/api
 | 
			
		||||
COPY --from=jsbuilder /app/dist /project/api/dist
 | 
			
		||||
 | 
			
		||||
EXPOSE 8000
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								postcss.config.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								postcss.config.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
module.exports = {
 | 
			
		||||
  plugins: {
 | 
			
		||||
    tailwindcss: {},
 | 
			
		||||
    autoprefixer: {},
 | 
			
		||||
  },
 | 
			
		||||
};
 | 
			
		||||
		Reference in New Issue
	
	Block a user