Spaces:
Running
Running
gordonchan
commited on
Commit
•
4c8ee07
1
Parent(s):
1033a6c
Update Dockerfile
Browse files- Dockerfile +14 -4
Dockerfile
CHANGED
@@ -1,6 +1,16 @@
|
|
1 |
-
FROM
|
2 |
-
|
|
|
|
|
|
|
|
|
3 |
COPY config /home/vocechat-server/config
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
5 |
EXPOSE 3000
|
6 |
-
|
|
|
|
1 |
+
FROM alpine as certs
|
2 |
+
RUN apk update && apk add ca-certificates
|
3 |
+
|
4 |
+
FROM busybox
|
5 |
+
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
|
6 |
+
COPY vocechat-server /home/vocechat-server/vocechat-server
|
7 |
COPY config /home/vocechat-server/config
|
8 |
+
COPY docker-entrypoint.sh /
|
9 |
+
RUN chmod +x /docker-entrypoint.sh
|
10 |
+
ENV VOCECHAT_FCM_PROJECT_ID=""\
|
11 |
+
VOCECHAT_FCM_PRIVATE_KEY=""\
|
12 |
+
VOCECHAT_FCM_CLIENT_EMAIL=""\
|
13 |
+
VOCECHAT_FCM_TOKEN_URI="https://oauth2.googleapis.com/token"
|
14 |
EXPOSE 3000
|
15 |
+
WORKDIR /home/vocechat-server
|
16 |
+
ENTRYPOINT ["/docker-entrypoint.sh"]
|