Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,19 @@ RUN apt-get install -y --allow-downgrades \
WORKDIR /app/www
RUN mkdir -p /opt/bin && chmod +x /dev/shm

COPY ./dist /app/www/dist
RUN npm install -g npm@latest
RUN npm config set update-notifier false

COPY ./config.json /app/www
COPY ./tsconfig.json /app/www
COPY ./package.json /app/www
COPY ./package-lock.json /app/www
RUN npm install -ci

RUN sh $(npx install-browser-deps)

COPY ./src /app/www/src
RUN npm run build

#ENV ULX_DEBUG true
#ENV DEBUG true
Expand All @@ -53,11 +62,7 @@ COPY ./package-lock.json /app/www
ENV NODE_ENV production
ENV ULX_NO_CHROME_SANDBOX true

RUN npm install -g npm@latest
RUN npm config set update-notifier false
RUN npm install --production

RUN sh $(npx install-browser-deps)
RUN rm -rf /app/www/src

EXPOSE 8080
CMD ["npm", "run", "start"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ npm install
npm run build
```

- Now we can run it with Docker OR directly on machine
- Now we can run it directly on machine
> NOTE: Viewing browser and replays will work only on machine

- Docker way
Expand Down