This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
2018-05-04 20:55:56 +01:00
|
|
|
FROM node:8-alpine
|
2018-01-26 19:56:43 +00:00
|
|
|
|
2018-05-05 12:01:07 +01:00
|
|
|
COPY ./src /opt/tstatic/src
|
|
|
|
COPY ./package.json opt/tstatic/package.json
|
|
|
|
COPY ./package-lock.json opt/tstatic/package-lock.json
|
|
|
|
COPY ./tsconfig.json opt/tstatic/tsconfig.json
|
2018-05-04 21:01:01 +01:00
|
|
|
COPY ./site /var/www
|
2018-01-26 19:56:43 +00:00
|
|
|
|
2018-05-05 12:01:07 +01:00
|
|
|
WORKDIR /opt/tstatic
|
2018-01-26 19:56:43 +00:00
|
|
|
|
2018-05-04 20:47:51 +01:00
|
|
|
RUN apk add --no-cache git
|
|
|
|
|
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
ENV NODE_ENV production
|
2018-01-26 19:56:43 +00:00
|
|
|
|
|
|
|
RUN npm run build
|
|
|
|
|
2018-05-04 20:47:51 +01:00
|
|
|
RUN npm prune --production
|
|
|
|
|
2018-05-05 12:01:07 +01:00
|
|
|
RUN npm install -g .
|
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
|
|
|
|
CMD tstatic /var/www
|
2018-01-26 19:56:43 +00:00
|
|
|
|
2018-01-28 11:10:42 +00:00
|
|
|
EXPOSE 5000
|