File size: 370 Bytes
ff9bd09 f5054e3 ff9bd09 f5054e3 ff9bd09 f5054e3 ff9bd09 f5054e3 ff9bd09 f5054e3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
FROM node:18-slim
WORKDIR $HOME/app
RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/Rob--W/cors-anywhere.git cors-anywhere
WORKDIR $HOME/app/cors-anywhere
RUN npm install
RUN npm install http-server -g
COPY . $HOME/app
WORKDIR $HOME/app
VOLUME /data
ENV PORT=12349
CMD node ./cors-anywhere/server.js &
EXPOSE 12345
CMD http-server -p 12345
|