-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile.dev
More file actions
26 lines (18 loc) · 745 Bytes
/
Dockerfile.dev
File metadata and controls
26 lines (18 loc) · 745 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
#CBS is only supported on debian 8x (jessie) and 9x (stretch) as of 2020-07-xx
# and supports LTS version of Node.js (using 12.18.2 for as of 2020-07-xx)
#https://docs.couchbase.com/nodejs-sdk/3.0/hello-world/start-using-sdk.html#installing-the-sdk
FROM node:12.18.2-stretch-slim
RUN apt-get update
RUN apt-get install -y lsb-release wget
RUN apt-get update && apt-get install -y build-essential
RUN apt-get install -y curl jq
WORKDIR /app
COPY ./package.json ./
RUN npm install
#make sure to not copy of node_modules folder
#that will lead to problems
#https://stackoverflow.com/questions/34822326/invalid-elf-header-node-js-with-couchbase-db
COPY . .
RUN chmod +x /app/resources/catchup.sh
ENV API_PORT 3000
CMD ["npm", "run", "dev"]