-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start work on docker-compose dev build
- Loading branch information
Showing
5 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
node_modules/ | ||
.pnp/ | ||
.pnp.js | ||
|
||
# testing | ||
coverage/ | ||
|
||
# production | ||
build/ | ||
target/ | ||
|
||
# misc | ||
.DS_Store | ||
|
||
npm-debug.log* | ||
yarn-debug.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
FROM rust:1.43 | ||
FROM rust | ||
|
||
RUN mkdir -p /server | ||
WORKDIR /server | ||
|
||
COPY -r src/ /server | ||
COPY Cargo.* /server | ||
# install dependencies seperately for caching | ||
# COPY "Cargo.toml" . | ||
# RUN echo "fn main() {}" > dummy.rs | ||
# RUN sed -i 's#src/main.rs#dummy.rs#' Cargo.toml | ||
# RUN cargo build | ||
# RUN sed -i 's#dummy.rs#src/main.rs#' Cargo.toml | ||
|
||
# copy files | ||
COPY . . | ||
|
||
CMD "cargo" "run" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fn main(){} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters