forked from aqualinkorg/aqualink-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 657 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (19 loc) · 657 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM node:20
# Install netcdf
RUN apt update
RUN apt install -y sudo
RUN sudo apt install -y libnetcdf-dev
RUN yarn global add typescript
RUN yarn global add ts-node
# Run application
ENV NODE_ENV=production
WORKDIR /app
# TODO - Find a way to get the yarn.lock which is "out of context".
# Because we are in a sub-package it is located at ../../yarn.lock
COPY ["package.json", "yarn.lock", "./"]
RUN yarn install --production
# Add yargs and Netcdf to the project so that we can run NOAA available scripts using netcdf in the container.
RUN yarn add yargs
RUN yarn add netcdf4@https://github.com/ovio-forks/netcdf4
COPY . .
CMD [ "yarn", "start" ]