Skip to content

Commit

Permalink
adjust dockerfile relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
valx committed Nov 20, 2024
1 parent 0ea3f5a commit 05fa7fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions template/{{.input_root_dir}}/.gitlab/docker/Dockerfile.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM databricksruntime/python:10.4-LTS
FROM library/ubuntu:20.04
RUN apt-get update && \
apt-get -y install python3-pip curl unzip openjdk-11-jdk
DEBIAN_FRONTEND=noninteractive apt-get -y install python3-pip curl unzip openjdk-11-jdk
RUN curl -fsSL https://raw.githubusercontent.com/databricks/setup-cli/main/install.sh | sh
RUN pip install requests
COPY {{template `project_name_alphanumeric_underscore` .}}/requirements.txt .
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh

# execute from project
docker login -u $CI_REGISTRY_USER registry.gitlab.com
docker build -t {{ .input_docker_image }} .
docker build -t {{ .input_docker_image }} -f .gitlab/docker/Dockerfile .
docker push {{ .input_docker_image }}

0 comments on commit 05fa7fc

Please sign in to comment.