forked from PayString/paystring
- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
Latest commit
27 lines (17 loc) · 601 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (17 loc) · 601 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
FROM node:26.2.0-alpine
LABEL maintainer="Florent Uzio <fuzio@ripple.com>"
WORKDIR /opt
RUN mkdir payid
WORKDIR /opt/payid
COPY . .
# create a group and user
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
# postgresql-client is needed if/when we run "wait-for-postgres.sh" (in ./scripts) to make sure Postgres is ready to execute SQL scripts.
RUN apk --no-cache add postgresql-client~=12 &&\
npm cache clean --force &&\
npm install &&\
npm run build
EXPOSE 8080 8081
# run all future commands as this user
USER appuser
CMD ["node", "/opt/payid/build/src/index.js"]