Skip to content

Commit

Permalink
Merge pull request #9 from kartoza/sdlc-app-vulnerabilities-clean-up
Browse files Browse the repository at this point in the history
⚡️ New docker image with based on ubuntu:oracular
  • Loading branch information
LokoMoloko98 authored Jul 16, 2024
2 parents bb469ae + a5d7b7f commit d8569f2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#Use an official Python runtime as a parent image
FROM python:3.12
#Use an Ubuntu runtime as a parent image
FROM ubuntu:oracular

# Update packages
RUN apt-get update

# Install Python3
RUN apt-get install python3 -y

# Install pip

RUN apt-get install python3-pip -y

# Set the working directory in the container
WORKDIR /app
Expand All @@ -8,7 +18,7 @@ WORKDIR /app
COPY . /app

# Install any needed packages specified in requirements.txt
RUN pip install -r requirements.txt
RUN python3 -m pip install -r requirements.txt --break-system-packages

# Convert the CT TSM geojson file into a table in an SQLite database file
RUN geojson-to-sqlite CT-TSMs.db town_survey_marks Town_Survey_Marks_1000.geojson
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Run the script:

### 4. Run the container from the image:
```bash
docker run -d --name kartoza_devops_app_container -p 8501:8501 kartoza_devops_app
docker run -d --name kartoza_devops_app_container -p 8501:8501 kartoza-devops-app
```

### 5. Check that the container is running and the app is running locallly
Expand Down
Empty file modified build_image.sh
100755 → 100644
Empty file.

0 comments on commit d8569f2

Please sign in to comment.