Skip to content

Commit

Permalink
removed unused env vars from okteto dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Rivas committed Jun 14, 2020
1 parent 9162178 commit 1a17628
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions rust-warp-okteto/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,18 @@ FROM openfaas/of-watchdog:0.7.7 as watchdog

FROM austinrivas/rust-warp-builder:stable

WORKDIR /root/

COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog

ENV FUNC_HOME_DIR=/home/app
ENV TARGET_ENV=x86_64-unknown-linux-musl
ENV FUNC_HOME_DIR=/home/rust

RUN mkdir -p ${FUNC_HOME_DIR} \
&& cp -r /home/rust/main /home/app/ \
&& cp -r /home/rust/function /home/app/ \
&& chmod +x /usr/bin/fwatchdog \
&& addgroup --system --gid 12000 fn_group \
&& adduser --system --home ${FUNC_HOME_DIR} -u 12000 --gid 12000 fn_user \
&& chown fn_user:fn_group -R ${FUNC_HOME_DIR} \
&& chown fn_user:fn_group -R /usr/local \
&& chmod 777 /tmp

WORKDIR ${FUNC_HOME_DIR}

RUN echo 'Welcome to your development environment. Happy coding!' > /etc/mod \
&& echo 'export PS1="\[\e[32m\]okteto\[\e[m\]> "' >> .bashrc

Expand Down

0 comments on commit 1a17628

Please sign in to comment.