Skip to content

Commit

Permalink
🐳 Add Dockerfile & docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreyoda committed Feb 11, 2021
1 parent 0039ed0 commit 183e4ec
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/target

Dockerfile
.dockerignore
docker-compose.yml
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM rust:1.49-slim

RUN apt-get -q update && apt-get -q install -y \
libsdl2-dev \
libsdl2-ttf-dev \
&& rm -r /var/lib/apt/lists/*

WORKDIR /usr/src/rustboycolor/

COPY . .

RUN cargo build
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.7"

services:
rustboycolor:
build: .

0 comments on commit 183e4ec

Please sign in to comment.