Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Removed the ENV method, instead, by touch /.dockerenv file to make sure this file always exist.
  • Loading branch information
WeiChungHsu authored Mar 30, 2024
1 parent 851b743 commit 0e3002b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/arm-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
# so it could execute CF instance with API in HO.
FROM debian:stable-20211011 AS cuttlefish-arm64

# to detect if it is running inside a docker
ENV DOCKER_RUNNING=true

# Expose Operator Port (HTTP:1080, HTTPS:1443)
EXPOSE 1080 1443
# Expose HO(Host Orchestrator) Port (HTTP:2080, HTTPS:2443)
Expand Down Expand Up @@ -34,6 +31,9 @@ COPY ./out/cuttlefish-base_*.deb /root/
COPY ./out/cuttlefish-user_*.deb /root/
COPY ./out/cuttlefish-orchestration_*.deb /root/

# to make sure this file always exist
RUN touch /.dockerenv

# Install CF debian packages.
WORKDIR /root
RUN apt install -y -f \
Expand Down

0 comments on commit 0e3002b

Please sign in to comment.