Skip to content

Commit

Permalink
[minimega] copy global VERSION file to lib directory in Docker image
Browse files Browse the repository at this point in the history
This is in support of rebuilding the minimega Python package in Docker
images based off of this image.

The Python package was updated to require this file in commit 1a428a9.
  • Loading branch information
activeshadow committed Feb 26, 2024
1 parent dab4e81 commit c8e20a3
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ WORKDIR /minimega/

COPY . .

# COPY ./.git ./.git
# COPY ./scripts ./scripts
# COPY ./cmd ./cmd
# COPY ./pkg ./pkg
# COPY ./internal ./internal
# COPY ./packages ./packages
# COPY ./go.mod ./go.mod
# COPY ./go.sum ./go.sum

RUN ./scripts/all.bash


Expand Down Expand Up @@ -47,8 +38,9 @@ COPY --from=gobuilder /minimega/bin/minirouter /opt/minimega/bin/minirouter
# As the minimega API changes, so does the minimega.py generated file. Given
# this, let's go ahead and also include the lib directory so we can grab the
# updated Python package from the Docker image.
COPY --from=gobuilder /minimega/lib /opt/minimega/lib
COPY --from=gobuilder /minimega/README /opt/minimega/lib/README
COPY --from=gobuilder /minimega/lib /opt/minimega/lib
COPY --from=gobuilder /minimega/README /opt/minimega/lib/README
COPY --from=gobuilder /minimega/VERSION /opt/minimega/lib/VERSION

COPY ./web /opt/minimega/web
COPY ./docker/mm /usr/local/bin/mm
Expand Down

0 comments on commit c8e20a3

Please sign in to comment.