Fixes.
This commit is contained in:
		
							parent
							
								
									baa17a769e
								
							
						
					
					
						commit
						7599a1acbc
					
				
					 2 changed files with 10 additions and 16 deletions
				
			
		
							
								
								
									
										24
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								Dockerfile
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -2,24 +2,18 @@ FROM rust:alpine
 | 
			
		|||
 | 
			
		||||
WORKDIR /usr/src/app
 | 
			
		||||
 | 
			
		||||
RUN apk add git musl-dev
 | 
			
		||||
RUN apk add --update musl-dev openssl openssl-dev
 | 
			
		||||
 | 
			
		||||
COPY public/ public/
 | 
			
		||||
COPY void-be/ void-be/
 | 
			
		||||
 | 
			
		||||
# We don't need all the front end directory files
 | 
			
		||||
RUN mkdir void-fe
 | 
			
		||||
COPY void-fe/src/ void-fe/src/
 | 
			
		||||
COPY void-fe/data/ void-fe/data/
 | 
			
		||||
COPY void-fe/Cargo.toml void-fe/Cargo.toml
 | 
			
		||||
 | 
			
		||||
COPY data/ data/
 | 
			
		||||
COPY src/ src/
 | 
			
		||||
COPY templates/ templates/
 | 
			
		||||
COPY Cargo.toml .
 | 
			
		||||
COPY Rocket.toml .
 | 
			
		||||
COPY Cargo.lock .
 | 
			
		||||
COPY Dioxus.toml .
 | 
			
		||||
COPY access_token.key .
 | 
			
		||||
 | 
			
		||||
RUN cargo install --config "net.git-fetch-with-cli=true" --path .
 | 
			
		||||
ENV OPENSSL_NO_VENDOR=1
 | 
			
		||||
RUN cargo fetch && cargo install dioxus-cli --locked
 | 
			
		||||
RUN dx build --release
 | 
			
		||||
 | 
			
		||||
ENV RUST_ADDRESS=0.0.0.0
 | 
			
		||||
 | 
			
		||||
CMD ["cargo", "run", "--release"]
 | 
			
		||||
CMD ["dx", "serve", "--release"]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,4 +7,4 @@ services:
 | 
			
		|||
    build:
 | 
			
		||||
      context: .
 | 
			
		||||
    ports:
 | 
			
		||||
      - "8345:8345"
 | 
			
		||||
      - "8080:8345"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue