-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (28 loc) · 945 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
FROM node:16.17.1
USER root
RUN npm i @teambit/bvm -g
RUN bvm upgrade
ENV PATH=$PATH:/root/bin
# increase memory to avoid 137 error code
ENV NODE_OPTIONS=--max_old_space_size=4096
RUN bit config set analytics_reporting false
RUN bit config set no_warnings false
RUN bit config set interactive false
RUN bit config set error_reporting true
# ARG SCOPE_PATH=/root/bit
ARG SCOPE_PATH=/root/co-bit
WORKDIR ${SCOPE_PATH}
RUN bit init --bare
CMD bit start
# $ docker build -f ./Dockerfile -t bitcli/bit-server .
# $ docker run -it -v persist:/root/co-bit -p 3000:3000 bitcli/bit-server:latest
# $ bit remote add http://localhost:3000
# docker pull verdaccio/verdaccio
# docker run -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio
# --registry http://localhost:4873/
# npm install -g nrm
# 1. Login
# $ npm adduser --registry http://localhost:4873/
# 2. Publish
# $ npm publish --registry http://localhost:4873/
# 3. Refresh this page