-
-
Notifications
You must be signed in to change notification settings - Fork 86
/
Dockerfile
41 lines (27 loc) · 848 Bytes
/
Dockerfile
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
32
33
34
35
36
37
38
39
40
41
# build stage
FROM node:16 as build
WORKDIR /citizen
COPY package.json .
COPY package-lock.json .
RUN npm install
COPY . .
RUN npm run client
RUN npm run build:linux
# final stage
FROM bitnami/minideb
LABEL maintainer="outsideris@gmail.com"
LABEL org.opencontainers.image.source = "https://github.com/outsideris/citizen"
RUN apt update && apt install -y git jq vim curl
COPY --from=build /citizen/dist/citizen-linux-x64 /usr/local/bin/citizen
WORKDIR /citizen
ENV CITIZEN_DATABASE_TYPE mongodb_or_sqlite
ENV CITIZEN_DATABASE_URL protocol//username:password@hosts:port/database?options
ENV CITIZEN_STORAGE file
ENV CITIZEN_STORAGE_PATH /path/to/store
#ENV CITIZEN_STORAGE_BUCKET BUCKET_IF_STORAGE_IS_S3
ENV NODE_ENV=production
EXPOSE 3000
#COPY ./entrypoint.sh /
#RUN chmod +x /entrypoint.sh
#CMD ["/entrypoint.sh"]
CMD citizen server