Skip to content

Commit 4f38496

Browse files
committed
remove unnecessary files from docker image
1 parent e33200a commit 4f38496

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
Dockerfile
22
.gitignore
3+
node_modules
4+
venv

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ MAINTAINER Computer Science House <[email protected]>
2121

2222
RUN mkdir /opt/conditional
2323

24-
ADD requirements.txt /opt/conditional
24+
COPY requirements.txt /opt/conditional
2525

2626
WORKDIR /opt/conditional
2727

@@ -34,7 +34,8 @@ ARG PORT=8080
3434
ENV PORT=${PORT}
3535
EXPOSE ${PORT}
3636

37-
COPY . /opt/conditional
37+
COPY conditional /opt/conditional/conditional
38+
COPY *.py package.json /opt/conditional
3839
COPY --from=build-frontend /opt/conditional/conditional/static /opt/conditional/conditional/static
3940

4041
RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime

0 commit comments

Comments
 (0)