mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-07 19:08:34 +03:00
21 lines
363 B
Docker
21 lines
363 B
Docker
FROM mhart/alpine-node:10.11
|
|
|
|
LABEL authors="Lachlan Kermode <lk@forensic-architecture.org>"
|
|
|
|
# Install app dependencies
|
|
COPY package.json /www/package.json
|
|
RUN cd /www; npm install
|
|
|
|
# Copy app source
|
|
COPY . /www
|
|
WORKDIR /www
|
|
RUN npm run build
|
|
RUN mkdir -p data
|
|
|
|
# set your port
|
|
ENV PORT 4040
|
|
EXPOSE 4040
|
|
|
|
# start command as per package.json
|
|
CMD ["npm", "start"]
|