mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-28 02:20:27 +01:00
Improve Dockerfile
This commit is contained in:
@@ -12,14 +12,12 @@ RUN yarn install
|
|||||||
|
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
|
RUN cp .env build
|
||||||
|
|
||||||
WORKDIR /usr/src/artapi/build
|
WORKDIR /usr/src/artapi/build
|
||||||
|
|
||||||
RUN yarn install --production
|
RUN yarn install --production
|
||||||
|
|
||||||
RUN cp .env build
|
|
||||||
|
|
||||||
EXPOSE 5555
|
EXPOSE 5555
|
||||||
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
CMD ["yarn", "start"]
|
CMD ["yarn", "start"]
|
||||||
|
|||||||
Reference in New Issue
Block a user