mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 20:19:26 +01:00
24 lines
294 B
Docker
Executable File
24 lines
294 B
Docker
Executable File
FROM node:15.8.0-alpine3.10
|
|
|
|
RUN mkdir -p /usr/src/athena
|
|
WORKDIR /usr/src/athena
|
|
|
|
COPY . /usr/src/athena
|
|
|
|
RUN apk update && \
|
|
apk add git
|
|
|
|
RUN yarn install
|
|
|
|
RUN yarn build
|
|
|
|
RUN cp .env build
|
|
|
|
WORKDIR /usr/src/athena/build
|
|
|
|
RUN yarn install --production
|
|
|
|
EXPOSE 5555
|
|
|
|
CMD ["yarn", "start"]
|