Skip to content

Commit 0f72673

Browse files
authored
Merge pull request #20 from oslabs-beta/bug_dhp
Modified docketeerx/docketeer Dockerfile to layer cache Docker download
2 parents 87dbe7e + 2b7edf8 commit 0f72673

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ COPY package*.json ./
88
# Run npm install to install app dependencies
99
RUN npm install
1010

11-
# Copy the current directory contents into the container at /app
12-
COPY . .
13-
1411
# Set the PATH env variable
1512
# ENV PATH="/usr/local/bin:${PATH}"
1613
# COPY /usr/local/bin/docker /usr/local/bin/docker
@@ -19,6 +16,8 @@ RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${
1916
&& tar xzvf docker-${DOCKERVERSION}.tgz --strip 1 -C /usr/local/bin docker/docker \
2017
&& rm docker-${DOCKERVERSION}.tgz
2118

19+
# Copy the current directory contents into the container at /app
20+
COPY . .
2221

2322
# Make port 4000 available to the world outside this container
2423
EXPOSE 4000

src/components/helpers/commands.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const useHelper = () => {
5252
/* Removes stopped containers @param {*} containerID */
5353
remove(containerID) {
5454
const { removeContainer } = dispatch;
55-
fetch(`/api/removeContainer?id=${containerID}`)
55+
fetch(`/api/command/removeContainer?id=${containerID}`)
5656
.then((message) => message.json())
5757
.then((message) => {
5858
console.log({ message });

0 commit comments

Comments
 (0)