Skip to content

Commit

Permalink
Updated Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjohns-scottlogic committed Nov 14, 2024
1 parent 33d8e59 commit 7122f87
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
22 changes: 14 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,23 @@ FROM python:3.8-slim-bookworm
WORKDIR /
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install curl git bats -y
RUN apt-get install -y bats curl git make sqlite3 sudo gdal-bin time libsqlite3-mod-spatialite

RUN useradd --shell /bin/bash --home-dir /task --create-home task
RUN adduser task sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

COPY task /task
RUN chown task:task -R /task
USER task
WORKDIR /task
ENV PATH="${PATH}:/task/.local/bin"
RUN pip install pyproj
RUN pip install csvkit
RUN pip install awscli
COPY requirements/requirements.txt /requirements.txt
# COPY requirements/requirements.txt /requirements.txt
RUN pip install --upgrade pip
RUN pip install --upgrade -r requirements.txt

COPY task /task
# USER task
# RUN chown task:task -R /task

WORKDIR /task
ENTRYPOINT ["./run.sh"]

ENTRYPOINT ["sh","./run.sh"]
2 changes: 2 additions & 0 deletions task/run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#! /bin/bash

set -e

export SOURCE_URL='https://raw.githubusercontent.com/digital-land/'
Expand Down

0 comments on commit 7122f87

Please sign in to comment.