Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc4f18c0

Browse files
committed
add compose dev and upgrade node image
1 parent1e6802a commitc4f18c0

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

‎Dockerfile‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
11
# Build stage
2-
FROM node:16-buster-slim ASbuild
2+
FROM node:20-buster-slim ASbase
33

44
WORKDIR /app
55

66
COPY package.json yarn.lock ./
77

8-
RUN apt-get update && \
9-
yarn install --production && \
8+
RUN apt update -y && \
9+
apt upgrade -y
10+
11+
FROM base as dev
12+
13+
RUN yarn && \
1014
rm -rf /app/node_modules/.cache
15+
ENTRYPOINT ["yarn"]
1116

17+
FROM base AS build
1218
COPY . .
1319

14-
RUN yarn build --production
20+
RUN yarn build --production && \
21+
rm -rf /app/node_modules/.cache
1522

1623
# Final stage
17-
FROM node:16-buster-slim AS final
24+
FROM node:20-buster-slim AS final
1825

1926
WORKDIR /app
2027

‎docker-compose.dev.yaml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version:'3.9'
2+
services:
3+
web-check:
4+
container_name:Web-Check
5+
command:dev
6+
build:
7+
target:dev
8+
volumes:
9+
-./:/app
10+
ports:
11+
-8080:8888

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp