Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TekKom
homepage
Commits
fe2fe7f7
Verified
Commit
fe2fe7f7
authored
Apr 30, 2020
by
Ole Martin Ruud
Browse files
Remove explicit working dir from dockerfiles
parent
76a3cc3c
Changes
5
Hide whitespace changes
Inline
Side-by-side
.pipeline/Dockerfile.build
View file @
fe2fe7f7
...
...
@@ -2,7 +2,6 @@
# precompiled dependencies.
ARG BASE_IMAGE
FROM $BASE_IMAGE AS build
WORKDIR /usr/src/homepage
COPY src src
RUN cargo build --workspace --all-features --release --locked --target x86_64-unknown-linux-musl
.pipeline/Dockerfile.clippy
View file @
fe2fe7f7
...
...
@@ -2,7 +2,6 @@
# precompiled dependencies.
ARG BASE_IMAGE
FROM $BASE_IMAGE AS build
WORKDIR /usr/src/homepage
RUN rustup component add clippy
...
...
.pipeline/Dockerfile.deploy
View file @
fe2fe7f7
...
...
@@ -2,7 +2,6 @@
# precompiled dependencies.
ARG BASE_IMAGE
FROM $BASE_IMAGE AS build
WORKDIR /usr/src/homepage
COPY src src
RUN cargo build --bins --release --locked --target x86_64-unknown-linux-musl
...
...
@@ -26,7 +25,7 @@ ENV HOMEPAGE_LOG_COLOR false
EXPOSE 80/tcp
WORKDIR /srv
COPY --from=build \
/us
r
/src/
homepage/
target/x86_64-unknown-linux-musl/release/homepage \
/
home/r
us
t
/src/target/x86_64-unknown-linux-musl/release/homepage \
/bin/homepage
COPY ./templates /srv/templates
COPY ./static /srv/static
...
...
.pipeline/Dockerfile.deps
View file @
fe2fe7f7
...
...
@@ -3,7 +3,6 @@
# re-downloading dependencies if they have not changed.
ARG BASE_IMAGE=ekidd/rust-musl-builder:stable
FROM $BASE_IMAGE AS build
WORKDIR /usr/src/homepage
# Download the target for static linking.
RUN rustup set profile minimal
...
...
.pipeline/Dockerfile.test
View file @
fe2fe7f7
...
...
@@ -2,7 +2,6 @@
# precompiled dependencies.
ARG
BASE_IMAGE
FROM
$BASE_IMAGE
AS
build
WORKDIR
/
usr
/
src
/
homepage
COPY
src
src
RUN
cargo
test
--
workspace
--
all
-
features
--
release
--
locked
--
target
x86_64
-
unknown
-
linux
-
musl
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment