-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 798 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 798 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
28
29
30
31
# -----------------------------------------------------------------------------
# Codam Coding College, Amsterdam @ 2022.
# See README in the root project for more information.
# -----------------------------------------------------------------------------
FROM debian:buster
WORKDIR /app
RUN chmod a+rw ./
# The node version on the package deb is outdated as hell
# so we need to fetch the latest from nodesource
RUN apt update && apt -y install curl gnupg sqlite3
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN apt -y install nodejs
COPY package.json ./
COPY package-lock.json ./
# Setup the application itself
RUN npm install
COPY . ./
RUN npm run init-db
RUN npm run build
ENTRYPOINT [ "npm", "run", "start" ]
# For debugging.
# ENTRYPOINT ["tail", "-f", "/dev/null"]