mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-21 22:11:37 +01:00
17 lines
No EOL
321 B
Docker
17 lines
No EOL
321 B
Docker
FROM node:12-alpine
|
|
|
|
# Create app directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# Install app dependencies
|
|
COPY package.json /usr/src/app/
|
|
COPY yarn.lock /usr/src/app/
|
|
RUN yarn --network-timeout 300000 --production=true
|
|
RUN yarn add cross-env
|
|
|
|
# Bundle app source
|
|
COPY . /usr/src/app
|
|
RUN yarn build
|
|
EXPOSE 3000
|
|
|
|
CMD [ "yarn", "start" ] |