add dockerfile

from https://github.com/DiffuseHyperion/Ultraviolet-App-docker
This commit is contained in:
David Reed 2023-10-26 22:34:16 -04:00
parent c36f37d924
commit 22bc3eb6d9
No known key found for this signature in database

19
Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM node:18-alpine
ENV NODE_ENV=production
ARG NPM_BUILD="npm install --omit=dev"
EXPOSE 8080/tcp
LABEL maintainer="TitaniumNetwork Ultraviolet Team"
LABEL summary="Ultraviolet Proxy Image"
LABEL description="Example application of Ultraviolet which can be deployed in production."
WORKDIR /app
COPY ["package.json", "package-lock.json", "./"]
RUN $NPM_BUILD
COPY . .
ENTRYPOINT [ "node" ]
CMD ["src/index.js"]