-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathDockerfile
38 lines (38 loc) · 1.18 KB
/
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
FROM node:lts-slim
ARG BUILD_DATE
ARG VERSION
ARG VCS_REF
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.name="firebase-tools" \
org.label-schema.version=${VERSION} \
org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.description="Firebase CLI on the NodeJS image" \
org.label-schema.url="https://github.com/firebase/firebase-tools/" \
org.label-schema.vcs-url="https://github.com/AndreySenov/firebase-tools-docker/" \
org.label-schema.vcs-ref=${VCS_REF}
ENV FIREBASE_TOOLS_VERSION=${VERSION}
ENV HOME=/home/node
EXPOSE 4000
EXPOSE 5000
EXPOSE 5001
EXPOSE 8080
EXPOSE 8085
EXPOSE 9000
EXPOSE 9005
EXPOSE 9099
EXPOSE 9199
SHELL ["/bin/bash", "-c"]
RUN apt-get update && apt-get install -y autoconf g++ libtool make openjdk-17-jre-headless python3 && \
npm install -g firebase-tools@${VERSION} typescript && \
npm cache clean --force && \
firebase setup:emulators:database && \
firebase setup:emulators:firestore && \
firebase setup:emulators:pubsub && \
firebase setup:emulators:storage && \
firebase -V && \
java -version && \
chown -R node:node $HOME
USER node
VOLUME $HOME/.cache
WORKDIR $HOME
CMD ["bash"]