Skip to content

Commit

Permalink
#508 Upgrade Dockerfile to Node.JS v20+ (#509)
Browse files Browse the repository at this point in the history
* #508 Upgrade to NodeJS v20.11.1

* #508 Update Dockerfile 2, update nupmy
  • Loading branch information
tariqksoliman authored Mar 11, 2024
1 parent 7d447b1 commit eddc4ae
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16
FROM node:20

ARG PUBLIC_URL_ARG=
ENV PUBLIC_URL=$PUBLIC_URL_ARG
Expand All @@ -7,15 +7,16 @@ ENV PUBLIC_URL=$PUBLIC_URL_ARG
RUN apt-get -y update
RUN apt-get install -y gdal-bin libgdal-dev python3-pip python3-gdal

# Use Python3 for python
RUN rm /usr/bin/python && ln -s /usr/bin/python3 /usr/bin/python

# Create app directory
WORKDIR /usr/src/app

# Install app dependencies
COPY python-requirements.txt ./
RUN python -m pip install --upgrade pip && python -m pip install -r ./python-requirements.txt
RUN rm /usr/lib/python*/EXTERNALLY-MANAGED && \
pip3 install -r ./python-requirements.txt

# Use python3 for python
RUN ln -s /usr/bin/python3 /usr/bin/python

COPY package*.json ./
RUN npm install
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ See the [configuration documentation](https://nasa-ammos.github.io/MMGIS/configu

### System Requirements

1. Install the latest version of [Node.js v16.13.2+](https://nodejs.org/en/download/).
1. Install the latest version of [Node.js v20.11.1+](https://nodejs.org/en/download/).

1. Install [PostgreSQL v10.14+](https://www.enterprisedb.com/downloads/postgres-postgresql-downloads). Detailed [install instructions](https://www.postgresqltutorial.com/postgresql-getting-started/) for all platforms.
1. Install [PostGIS 2.5+](https://postgis.net/install/). From the above install, you can use the 'Application Stack Builder' to install PostGIS or the default [PostGIS install instructions](https://postgis.net/install/) for all platforms.
1. Make a new PostgreSQL database and remember the user, password and database name.
Use 'pgsl' or the 'SQL Shell' to log into Postgres. It will prompt you for the username and password made during the install.
Use 'psql' or the 'SQL Shell' to log into Postgres. It will prompt you for the username and password made during the install.

1. GDAL and Python are weaker dependencies (desirable but, without them, not everything will work)

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/Setup/Installation/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ See the [configuration documentation](https://nasa-ammos.github.io/MMGIS/configu

### System Requirements

1. Install the latest version of [Node.js v16.13.2+](https://nodejs.org/en/download/).
1. Install the latest version of [Node.js v20.11.1+](https://nodejs.org/en/download/).

1. Install [PostgreSQL v10.14+](https://www.enterprisedb.com/downloads/postgres-postgresql-downloads). Detailed [install instructions](https://www.postgresqltutorial.com/postgresql-getting-started/) for all platforms.
1. Install [PostGIS 2.5+](https://postgis.net/install/). From the above install, you can use the 'Application Stack Builder' to install PostGIS or the default [PostGIS install instructions](https://postgis.net/install/) for all platforms.
Expand Down
2 changes: 1 addition & 1 deletion python-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
numpy==1.21.6
numpy==1.26.4
spiceypy==5.1.2
pymap3d==3.0.1

0 comments on commit eddc4ae

Please sign in to comment.