mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-14 16:49:10 +00:00
prettier organize imports
This commit is contained in:
parent
899853e24c
commit
2e1e63a789
101 changed files with 173 additions and 180 deletions
|
@ -2,9 +2,9 @@ FROM golang:1.15-alpine AS builder
|
|||
|
||||
# Create the user and group files that will be used in the running container to
|
||||
# run the process as an unprivileged user.
|
||||
RUN mkdir /user && \
|
||||
echo 'nobody:x:65534:65534:nobody:/:' > /user/passwd && \
|
||||
echo 'nobody:x:65534:' > /user/group
|
||||
RUN mkdir /user \
|
||||
&& echo 'nobody:x:65534:65534:nobody:/:' >/user/passwd \
|
||||
&& echo 'nobody:x:65534:' >/user/group
|
||||
|
||||
# Install the Certificate-Authority certificates for the app to be able to make
|
||||
# calls to HTTPS endpoints.
|
||||
|
@ -24,8 +24,8 @@ COPY ./ ./
|
|||
|
||||
# Build the executable to `/app`. Mark the build as statically linked.
|
||||
RUN CGO_ENABLED=0 go build \
|
||||
-installsuffix "static" \
|
||||
-o /app ./src/discord-bot
|
||||
-installsuffix "static" \
|
||||
-o /app ./src/discord-bot
|
||||
|
||||
# Final stage: the running container.
|
||||
FROM scratch AS final
|
||||
|
@ -43,4 +43,4 @@ COPY --from=builder /app /app
|
|||
USER nobody:nobody
|
||||
|
||||
# Run the compiled binary.
|
||||
ENTRYPOINT ["/app"]
|
||||
ENTRYPOINT ["/app"]
|
||||
|
|
|
@ -5,4 +5,4 @@ ARG NODE_VERSION="lts/*"
|
|||
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"
|
||||
|
||||
# Install Wrangler
|
||||
RUN su vscode -c "npm install -g wrangler"
|
||||
RUN su vscode -c "npm install -g wrangler"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:14-alpine AS base
|
||||
FROM node:14-alpine AS base
|
||||
WORKDIR /src
|
||||
|
||||
#
|
||||
|
@ -22,4 +22,4 @@ FROM base AS output
|
|||
COPY --from=builder /src/.next /src/node_modules ./
|
||||
|
||||
EXPOSE 3000
|
||||
CMD yarn ui:prod
|
||||
CMD yarn ui:prod
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import Enzyme from 'enzyme';
|
||||
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
|
||||
import Enzyme from 'enzyme';
|
||||
import enableHooks from 'jest-react-hooks-shallow';
|
||||
|
||||
Enzyme.configure({ adapter: new Adapter() });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue