mirror of
https://github.com/PretendoNetwork/juxtaposition-ui.git
synced 2026-09-12 19:35:33 -05:00
Merge pull request #4 from AnnoyingRain5/main
Added dockerfile to allow deploying via docker
This commit is contained in:
16
dockerfile
Normal file
16
dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM node:12-alpine
|
||||
EXPOSE 80/tcp
|
||||
EXPOSE 443/tcp
|
||||
RUN apk add --no-cache npm python3 make g++
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN mkdir /config
|
||||
VOLUME /config
|
||||
WORKDIR /app/src
|
||||
RUN mv config.example.json /config/config.json
|
||||
RUN npm install
|
||||
WORKDIR /app
|
||||
RUN echo "cp /config/config.json /app/src/config.json && npm start" > startup.sh
|
||||
RUN chmod +x startup.sh
|
||||
ENTRYPOINT "/app/startup.sh"
|
||||
Reference in New Issue
Block a user