Skip to content

Commit 921bbb1

Browse files
committed
Add Dockerfile to deploy to now
This seems to be needed for write access to the flat-file-db.
1 parent c6b1c44 commit 921bbb1

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This is used to be able to write to the flat-file-db
2+
FROM node
3+
4+
RUN mkdir -p /opt/micro-analytics
5+
WORKDIR /opt/micro-analytics
6+
COPY . /opt/micro-analytics
7+
8+
RUN npm install
9+
RUN npm run build
10+
11+
EXPOSE 3000
12+
13+
CMD [ "npm", "start" ]

now.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "micro-analytics",
3+
"type": "docker"
4+
}

0 commit comments

Comments
 (0)