Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
fix: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeysova committed Dec 9, 2018
1 parent cd21665 commit 15a5b24
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ ARG ALPINE_VERSION=3.8

FROM rust:$RUST_VERSION as build

RUN USER=root cargo new --bin /app && \
touch /app/src/lib.rs
RUN USER=root cargo new --bin /app
WORKDIR /app

# COPY ./Cargo.lock ./Cargo.lock
COPY ./Cargo.lock ./Cargo.lock
COPY ./Cargo.toml ./Cargo.toml

RUN cargo build --release && \
RUN cargo build --release && \
rm -rf src

COPY ./ ./
Expand Down

0 comments on commit 15a5b24

Please sign in to comment.