Skip to content

Commit

Permalink
Use Ubuntu 22.04 rather than latest; provide path to Dockerfile; avoi…
Browse files Browse the repository at this point in the history
…d --no-cache
  • Loading branch information
jwallwork23 committed Oct 28, 2024
1 parent bb6c205 commit fae7560
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile.devenv
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN cd /opt/spack-environment \
&& spack env activate --sh -d . > activate.sh

# Bare OS image to run the installed executables
FROM ubuntu:latest
FROM ubuntu:22.04

# Copy necessary files from the builder stage
COPY --from=builder /opt/spack-environment /opt/spack-environment
Expand Down
4 changes: 2 additions & 2 deletions docker/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all: build

DOCKERFILE = Dockerfile.devenv
DOCKERFILE = ${GISS_HOME}/docker/Dockerfile.devenv
NAMESPACE = ghcr.io/fetch4
IMAGE_NAME = giss-gc-dev-env
TAG = latest
Expand All @@ -11,7 +11,7 @@ pull:
docker pull $(IMAGE)

build:
docker build -f $(DOCKERFILE) -t $(IMAGE) --no-cache .
docker build -f $(DOCKERFILE) -t $(IMAGE) .

run:
docker run --rm -it -v ${HOME}:${HOME} $(IMAGE)
Expand Down

0 comments on commit fae7560

Please sign in to comment.