mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
- Add `.dockerignore` file - Add `Dockerfile.dev` - Modify `docker-compose.yml`: - Add `restart: on-failure` to `app` service - Modify `build` section of `app` service - Remove `links` section from `app` service - Add `networks` section to `app` and `db` services - Add `networks` section to the end of the file Signed-off-by: wancat <wancat@wancat.cc>
16 lines
238 B
Docker
16 lines
238 B
Docker
FROM node
|
|
|
|
WORKDIR /app
|
|
COPY package.json yarn.lock ./
|
|
COPY server/package.json ./server/
|
|
RUN yarn install --frozen-lockfile
|
|
|
|
WORKDIR /app/server
|
|
|
|
ENV NODE_ENV=development
|
|
ENV HOST=0.0.0.0
|
|
ENV PORT=3000
|
|
EXPOSE 3000
|
|
|
|
CMD [ "yarn", "dev" ]
|