mirror of
				https://github.com/jhbruhn/notes2ics.git
				synced 2025-10-31 16:25:59 +00:00 
			
		
		
		
	Fix Dockerfile
This commit is contained in:
		
							parent
							
								
									497f7027d2
								
							
						
					
					
						commit
						03c8014766
					
				
					 2 changed files with 5 additions and 4 deletions
				
			
		|  | @ -5,10 +5,10 @@ RUN ./platform.sh # should write /.platform and /.compiler | ||||||
| RUN rustup target add $(cat /.platform) | RUN rustup target add $(cat /.platform) | ||||||
| RUN apt update && apt-get install -y unzip $(cat /.compiler) | RUN apt update && apt-get install -y unzip $(cat /.compiler) | ||||||
| 
 | 
 | ||||||
| WORKDIR ./ics-adapter | WORKDIR ./notes2ics | ||||||
| ADD . ./ | ADD . ./ | ||||||
| RUN cargo build --release --target $(cat /.platform) | RUN cargo build --release --target $(cat /.platform) | ||||||
| RUN cp ./target/$(cat /.platform)/release/ics-adapter /ics-adapter.bin # Get rid of this when build --out is stable | RUN cp ./target/$(cat /.platform)/release/notes2ics /notes2ics.bin # Get rid of this when build --out is stable | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| FROM debian:buster-slim | FROM debian:buster-slim | ||||||
|  | @ -27,11 +27,11 @@ RUN groupadd $APP_USER \ | ||||||
|     && useradd -g $APP_USER $APP_USER \ |     && useradd -g $APP_USER $APP_USER \ | ||||||
|     && mkdir -p ${APP} |     && mkdir -p ${APP} | ||||||
| 
 | 
 | ||||||
| COPY --from=cross /ics-adapter.bin ${APP}/ics-adapter | COPY --from=cross /notes2ics.bin ${APP}/notes2ics | ||||||
| 
 | 
 | ||||||
| RUN chown -R $APP_USER:$APP_USER ${APP} | RUN chown -R $APP_USER:$APP_USER ${APP} | ||||||
| 
 | 
 | ||||||
| USER $APP_USER | USER $APP_USER | ||||||
| WORKDIR ${APP} | WORKDIR ${APP} | ||||||
| 
 | 
 | ||||||
| CMD ["./ics-adapter"] | CMD ["./notes2ics"] | ||||||
|  |  | ||||||
|  | @ -5,6 +5,7 @@ services: | ||||||
|       NOTES_USERNAME: <username> |       NOTES_USERNAME: <username> | ||||||
|       NOTES_PASSWORD: <password> |       NOTES_PASSWORD: <password> | ||||||
|       NOTES_HOST: domino2.something.de |       NOTES_HOST: domino2.something.de | ||||||
|  |       TZ: Europe/Berlin | ||||||
|       HOST: 0.0.0.0 |       HOST: 0.0.0.0 | ||||||
|       PORT: 3000 |       PORT: 3000 | ||||||
|     ports: |     ports: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue