mirror of
https://github.com/zhigang1992/actions.git
synced 2026-01-12 08:53:47 +08:00
setup dockerfile
This commit is contained in:
27
geojson2csv/Dockerfile
Normal file
27
geojson2csv/Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM python:3.7-alpine
|
||||
|
||||
LABEL "name"="geojson2csv"
|
||||
LABEL "maintainer"="Unacast <developers+github@unacast.com>"
|
||||
LABEL "version"="1.0.0"
|
||||
|
||||
LABEL "com.github.actions.name"="Geojson2csv"
|
||||
LABEL "com.github.actions.description"="Convert geojson to csv"
|
||||
LABEL "com.github.actions.icon"="truck"
|
||||
LABEL "com.github.actions.color"="green"
|
||||
|
||||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
|
||||
|
||||
RUN apk add --no-cache \
|
||||
gcc \
|
||||
libc-dev \
|
||||
geos-dev
|
||||
|
||||
COPY requirements.txt /
|
||||
RUN pip install -r /requirements.txt
|
||||
|
||||
#ENV GITHUB_WORKSPACE /github/workspace
|
||||
#WORKDIR /github/workspace
|
||||
|
||||
COPY geojson2csv.py ${GITHUB_WORKSPACE}/
|
||||
|
||||
ENTRYPOINT [ "python", "geojson2csv.py"]
|
||||
2
geojson2csv/requirements.txt
Normal file
2
geojson2csv/requirements.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
geojson
|
||||
shapely
|
||||
Reference in New Issue
Block a user