Skip to content

Commit

Permalink
Adjust docker build context used in makefiles (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeUrban authored Jun 11, 2021
1 parent b0f286f commit 6072237
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MAINTAINER SDF Ops Team <[email protected]>

RUN mkdir -p /app/server
RUN mkdir -p /app/@stellar/anchor-tests
RUN apt-get update && apt-get install -y gnupg1
RUN apt-get update && apt-get install -y gnupg1 libtool build-essential

WORKDIR /app

Expand All @@ -17,9 +17,9 @@ RUN apt-get update && apt-get install -y gnupg curl git make apt-transport-https

COPY tsconfig.json package.json yarn.lock /app/
COPY ./server /app/server/
COPY ./@stellar/anchor-tests /app/@stellar/anchor-tests
COPY ./@stellar/anchor-tests /app/@stellar/anchor-tests/
RUN yarn install
RUN yarn workspace server build
RUN yarn build:server

EXPOSE 8000
CMD ["yarn", "workspace", "server", "start"]
2 changes: 1 addition & 1 deletion server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TAG ?= stellar/stellar-anchor-tests:$(LABEL)
BUILD_DATE := $(shell date --utc --rfc-3339=seconds)

docker-build:
$(SUDO) docker build --pull --label org.opencontainers.image.created="$(BUILD_DATE)" -t $(TAG) .
$(SUDO) docker build --pull --label org.opencontainers.image.created="$(BUILD_DATE)" -f Dockerfile -t $(TAG) ..

docker-push:
$(SUDO) docker push $(TAG)
2 changes: 1 addition & 1 deletion ui/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TAG ?= stellar/stellar-anchor-tests:$(LABEL)
BUILD_DATE := $(shell date --utc --rfc-3339=seconds)

docker-build:
$(SUDO) docker build --pull --label org.opencontainers.image.created="$(BUILD_DATE)" -t $(TAG) .
$(SUDO) docker build --pull --label org.opencontainers.image.created="$(BUILD_DATE)" -f Dockerfile -t $(TAG) ..

docker-push:
$(SUDO) docker push $(TAG)

0 comments on commit 6072237

Please sign in to comment.