본문 바로가기

RUN3

Rust 간단한 웹서버 HttpServer 올리기 제목 그대로 간단하게 Rust로 웹서버 올리기 - hello world! 찍어보기 프로젝트 생성 $ cargo new rust-actix-api Cargo.toml 에 crate 추가 [dependencies] actix-web = "3.3.2" main.rs 수정 use actix_web::{web, App, HttpResponse, HttpServer, Responder}; async fn index() -> impl Responder { HttpResponse::Ok().body("Hello world!") } async fn get_data(web::Path(id): web::Path) -> impl Responder { let data = format!("get_data {id}"); HttpR.. 2023. 4. 19.
Jupyter notebook with Dockerfile jupyter notebook을 docker에서 실행하기 Dockerfile # tf2.3.0 docker makefile FROM tensorflow/tensorflow:2.3.0-gpu LABEL maintainer="chan" RUN apt-get update && apt-get install -y --no-install-recommends \ ssh git vim curl && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* COPY requirements.txt /tmp/requirements.txt RUN pip3 install --upgrade pip && \ pip3 install setuptools wheel && \ pip3 install -r /.. 2020. 10. 29.
Docker file 설명 Dockerfile FROM ubuntu:14.04# 어떤 이미지를 기반으로 할지 설정합니다. Docker 이미지는 기존에 만들어진 이미지를 기반으로 생성합니다. : 형식으로 설정합니다.MAINTAINER chanwoo Lee # 메인테이너 정보입니다.​RUN apt-get updateRUN apt-get install -y nginx# 셸 스크립트 혹은 명령을 실행합니다. 이미지 생성중엔 입력을 받을 수 없음.​VOLUME ["/data", "/etc/nginx/site-enabled", "/var/log/nginx"]# 호스트와 공유할 디렉터리 목록, docker run 명령에서 -v 옵션으로 설정할 수 있다. etc> -v /root/data:/data 는 호스트의 /root/data 디렉터리를 D.. 2016. 8. 30.