Deny directory listing, remove redundand code

This commit is contained in:
Zhan Egikyan 2022-04-07 12:32:01 +03:00
parent acd9cdfcef
commit dd614b024e
No known key found for this signature in database
GPG key ID: D7B112621CC4658C

View file

@ -2,22 +2,21 @@
FROM stremio/node-base:fermium
# Meta
LABEL Description="Stremio Web" Vendor="Smart Code ltd" Version="1.0.0"
LABEL Description="Stremio Web" Vendor="Smart Code OOD" Version="1.0.0"
# Create app directory
RUN mkdir -p /var/www/stremio-web
# Install app dependencies
WORKDIR /var/www/stremio-web
COPY package.json package-lock.json /var/www/stremio-web
COPY . /var/www/stremio-web
RUN npm install
RUN npm install -g http-server
# Bundle app source
WORKDIR /var/www/stremio-web
COPY . /var/www/stremio-web
RUN npm run build
EXPOSE 8080
CMD ["http-server", "/var/www/stremio-web/build/", "-p", "8080"]
CMD ["http-server", "/var/www/stremio-web/build/", "-p", "8080", "-d", "false"]