Skip to content

Commit a6a3449

Browse files
committed
Dockerfile: fix docker warnings
Uppercase the "AS" in the "FROM" line, and use "=" in ENV directives.
1 parent f88383c commit a6a3449

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Fabian Lehmann
66
# Wilfried Weber
77

8-
FROM ubuntu:20.04 as builder
8+
FROM ubuntu:20.04 AS builder
99

1010
# disable interactive frontends
1111
ENV DEBIAN_FRONTEND=noninteractive
@@ -90,7 +90,9 @@ Rscript -e "pak::pkg_install(c('rmarkdown','plotly', 'stringi', 'stringr', 'tm',
9090
apt-get clean && rm -r /var/cache/ /root/.cache /tmp/Rtmp*
9191

9292
# Install folder
93-
ENV INSTALL_DIR /opt/install/src
93+
ENV INSTALL_DIR=/opt/install/src \
94+
HOME=/home/docker \
95+
PATH="$PATH:/home/docker/bin"
9496

9597
# Build OpenCV from source
9698
RUN mkdir -p $INSTALL_DIR/opencv && cd $INSTALL_DIR/opencv && \
@@ -131,7 +133,4 @@ RUN groupadd docker && \
131133
# Use this user by default
132134
USER docker
133135

134-
ENV HOME /home/docker
135-
ENV PATH "$PATH:/home/docker/bin"
136-
137136
WORKDIR /home/docker

0 commit comments

Comments
 (0)