Skip to content

Commit f7af2b5

Browse files
Refactor Dockerfile to copy application files directly and remove unnecessary git clone step
1 parent 3d01762 commit f7af2b5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

docker/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ ENV READ2BURN_HOME="/app"
77

88
WORKDIR ${READ2BURN_HOME}
99

10+
COPY . .
11+
1012
# Run a command inside the image
1113
# If you are building your code for production
1214
# RUN npm ci --only=production
@@ -15,8 +17,6 @@ WORKDIR ${READ2BURN_HOME}
1517
RUN apk update \
1618
&& apk upgrade \
1719
&& apk add --no-cache tzdata \
18-
&& apk add git \
19-
&& git clone --single-branch --depth 1 https://github.com/wemove/read2burn.git ${READ2BURN_HOME} \
2020
&& npm ci --only=production \
2121
&& rm -rf ${READ2BURN_HOME}/docker
2222

@@ -25,9 +25,6 @@ RUN apk update \
2525

2626
FROM node:lts-alpine
2727

28-
# Your contact info
29-
MAINTAINER J Mueller <[email protected]>
30-
3128
ENV READ2BURN_HOME="/app"
3229

3330
WORKDIR ${READ2BURN_HOME}

0 commit comments

Comments
 (0)